mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Declarations Updates
This commit is contained in:
15
index.d.ts
vendored
15
index.d.ts
vendored
@@ -9,7 +9,6 @@ import { Stream } from "stream";
|
|||||||
*/
|
*/
|
||||||
export declare function createPass(options: Schema.FactoryOptions | AbstractModel, additionalBuffers?: Schema.BundleUnit, abstractMissingData?: Omit<Schema.AbstractFactoryOptions, "model">): Promise<Pass>;
|
export declare function createPass(options: Schema.FactoryOptions | AbstractModel, additionalBuffers?: Schema.BundleUnit, abstractMissingData?: Omit<Schema.AbstractFactoryOptions, "model">): Promise<Pass>;
|
||||||
|
|
||||||
|
|
||||||
export declare class Pass {
|
export declare class Pass {
|
||||||
constructor(options: Schema.PassInstance);
|
constructor(options: Schema.PassInstance);
|
||||||
|
|
||||||
@@ -40,7 +39,9 @@ export declare class Pass {
|
|||||||
*
|
*
|
||||||
* @see https://apple.co/2KOv0OW - Passes support localization
|
* @see https://apple.co/2KOv0OW - Passes support localization
|
||||||
*/
|
*/
|
||||||
localize(lang: string, translations?: { [key: string]: string }): this;
|
localize(lang: string, translations?: {
|
||||||
|
[key: string]: string
|
||||||
|
}): this;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets expirationDate property to a W3C-formatted date
|
* Sets expirationDate property to a W3C-formatted date
|
||||||
@@ -64,14 +65,16 @@ export declare class Pass {
|
|||||||
* @param data
|
* @param data
|
||||||
* @returns {Pass}
|
* @returns {Pass}
|
||||||
*/
|
*/
|
||||||
beacons(...data: Schema.Beacon[] | null): this;
|
beacons(resetFlag: null): this;
|
||||||
|
beacons(...data: Schema.Beacon[]): this;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets current pass' relevancy through locations
|
* Sets current pass' relevancy through locations
|
||||||
* @param data
|
* @param data
|
||||||
* @returns {Pass}
|
* @returns {Pass}
|
||||||
*/
|
*/
|
||||||
locations(...data: Schema.Location[] | null): this;
|
locations(resetFlag: null): this;
|
||||||
|
locations(...data: Schema.Location[]): this;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets current pass' relevancy through a date
|
* Sets current pass' relevancy through a date
|
||||||
@@ -90,7 +93,9 @@ export declare class Pass {
|
|||||||
* @params data - other barcodes support
|
* @params data - other barcodes support
|
||||||
* @return {this} Improved this with length property and other methods
|
* @return {this} Improved this with length property and other methods
|
||||||
*/
|
*/
|
||||||
barcodes(first: null | string | Schema.Barcode, ...data: Schema.Barcode[]): this;
|
barcodes(resetFlag: null): this;
|
||||||
|
barcodes(message: string): this;
|
||||||
|
barcodes(...data: Schema.Barcode[]): this;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given an index <= the amount of already set "barcodes",
|
* Given an index <= the amount of already set "barcodes",
|
||||||
|
|||||||
Reference in New Issue
Block a user