UNPKG

passkit-generator

Version:

The easiest way to generate custom Apple Wallet passes in Node.js

20 lines (19 loc) 948 B
import type PKPass from "./PKPass.js"; import * as Schemas from "./schemas/index.js"; /** * Class to represent lower-level keys pass fields * @see https://apple.co/2wkUBdh */ declare const passInstanceSymbol: unique symbol; declare const sharedKeysPoolSymbol: unique symbol; export default class FieldsArray extends Array<Schemas.PassFieldContent> { private [passInstanceSymbol]; private [sharedKeysPoolSymbol]; constructor(passInstance: InstanceType<typeof PKPass>, keysPool: Set<string>, fieldSchema: typeof Schemas.PassFieldContent | typeof Schemas.PassFieldContentWithRow, ...args: Schemas.PassFieldContent[]); push(...items: Schemas.PassFieldContent[]): number; pop(): Schemas.PassFieldContent; splice(start: number, deleteCount: number, ...items: Schemas.PassFieldContent[]): Schemas.PassFieldContent[]; shift(): Schemas.PassFieldContent; unshift(...items: Schemas.PassFieldContent[]): number; } export {};