mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
Moved NamedBuffers in Schemas ad renamed it in FileBuffers
This commit is contained in:
@@ -19,10 +19,6 @@ const createManifestSymbol = Symbol("pass.manifest");
|
||||
const closePassSymbol = Symbol("pass.close");
|
||||
const passTypeSymbol = Symbol("pass.type");
|
||||
|
||||
interface NamedBuffers {
|
||||
[key: string]: Buffer;
|
||||
}
|
||||
|
||||
export default class PKPass extends Bundle {
|
||||
private certificates: Schemas.CertificatesSchema;
|
||||
private [fieldKeysPoolSymbol] = new Set<string>();
|
||||
@@ -44,7 +40,7 @@ export default class PKPass extends Bundle {
|
||||
|
||||
static async from(source: PKPass | Schemas.Template): Promise<PKPass> {
|
||||
let certificates: Schemas.CertificatesSchema = undefined;
|
||||
let buffers: NamedBuffers = undefined;
|
||||
let buffers: Schemas.FileBuffers = undefined;
|
||||
let overrides: Schemas.OverridablePassProps = {};
|
||||
|
||||
if (!source) {
|
||||
@@ -128,7 +124,7 @@ export default class PKPass extends Bundle {
|
||||
// **************** //
|
||||
|
||||
constructor(
|
||||
buffers: NamedBuffers,
|
||||
buffers: Schemas.FileBuffers,
|
||||
certificates: Schemas.CertificatesSchema,
|
||||
overrides: Schemas.OverridablePassProps,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user