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