mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Fixed PKPass.from errors
This commit is contained in:
@@ -38,7 +38,7 @@ export default class PKPass extends Bundle {
|
|||||||
|
|
||||||
static async from<S extends PKPass | Schemas.Template>(
|
static async from<S extends PKPass | Schemas.Template>(
|
||||||
source: S,
|
source: S,
|
||||||
additionalProps: S extends PKPass
|
additionalProps?: S extends PKPass
|
||||||
? Schemas.OverridablePassProps
|
? Schemas.OverridablePassProps
|
||||||
: never,
|
: never,
|
||||||
): Promise<PKPass> {
|
): Promise<PKPass> {
|
||||||
@@ -81,7 +81,7 @@ export default class PKPass extends Bundle {
|
|||||||
|
|
||||||
buffers = await getModelFolderContents(source.model);
|
buffers = await getModelFolderContents(source.model);
|
||||||
certificates = source.certificates;
|
certificates = source.certificates;
|
||||||
props = Schemas.validate(Schemas.OverridablePassProps, props);
|
props = Schemas.validate(Schemas.OverridablePassProps, source.props);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProps && Object.keys(additionalProps).length) {
|
if (additionalProps && Object.keys(additionalProps).length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user