From 4b2aa68ffba1dec2a55126e4d2067f7150b8188c Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 17 Nov 2018 23:21:07 +0100 Subject: [PATCH] Added .load type definition --- index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.d.ts b/index.d.ts index b8c4e61..dab73a1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -55,6 +55,16 @@ export declare class Pass { * @see https://apple.co/2wTxiaC */ nfc(...data: Schema.NFC[]): this; + + /** + * Sets resources to be downloaded right inside + * the pass archive. + * @param resource - url + * @param name - name to be used inside the archive + * @returns this; + */ + + load(resource, name): this; } declare class FieldContainer {