mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Types and automatic improvements
This commit is contained in:
@@ -75,7 +75,7 @@ export class Pass {
|
||||
|
||||
// Parsing and validating pass.json keys
|
||||
const passCoreKeys = Object.keys(this.passCore) as (keyof schema.ValidPass)[];
|
||||
const validatedPassKeys = passCoreKeys.reduce((acc, current) => {
|
||||
const validatedPassKeys = passCoreKeys.reduce<schema.ValidPass>((acc, current) => {
|
||||
if (this.type === current) {
|
||||
// We want to exclude type keys (eventTicket,
|
||||
// boardingPass, ecc.) and their content
|
||||
|
||||
Reference in New Issue
Block a user