mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +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>(
|
||||
source: S,
|
||||
additionalProps: S extends PKPass
|
||||
additionalProps?: S extends PKPass
|
||||
? Schemas.OverridablePassProps
|
||||
: never,
|
||||
): Promise<PKPass> {
|
||||
@@ -81,7 +81,7 @@ export default class PKPass extends Bundle {
|
||||
|
||||
buffers = await getModelFolderContents(source.model);
|
||||
certificates = source.certificates;
|
||||
props = Schemas.validate(Schemas.OverridablePassProps, props);
|
||||
props = Schemas.validate(Schemas.OverridablePassProps, source.props);
|
||||
}
|
||||
|
||||
if (additionalProps && Object.keys(additionalProps).length) {
|
||||
|
||||
Reference in New Issue
Block a user