Moved Template type to Schemas

This commit is contained in:
Alexander Cerutti
2021-09-27 00:32:58 +02:00
parent cabb0daab4
commit ac1c994b75
2 changed files with 8 additions and 16 deletions

View File

@@ -22,14 +22,6 @@ interface NamedBuffers {
[key: string]: Buffer;
}
namespace PKPass {
export interface Template {
model: string;
certificates: Schemas.Certificates;
overrides?: Schemas.OverridesSupportedOptions;
}
}
type TransitTypes = `PKTransitType${
| "Air"
| "Boat"
@@ -58,8 +50,8 @@ export default class PKPass extends Bundle {
* @returns
*/
static async from(source: PKPass | PKPass.Template): Promise<PKPass> {
let certificates: Schemas.Certificates = undefined;
static async from(source: PKPass | Schemas.Template): Promise<PKPass> {
let certificates: Schemas.CertificatesSchema = undefined;
let buffers: NamedBuffers = undefined;
if (!source) {