UNPKG

upiqrcode

Version:

Generate UPI QR codes as SVG — compiled to WebAssembly

67 lines (55 loc) 2.42 kB
/* tslint:disable */ /* eslint-disable */ export interface UpiqrcodeParams { payeeVPA?: string; payeeName?: string; payeeMerchantCode?: string; transactionId?: string; transactionRef?: string; transactionNote?: string; amount?: string; minimumAmount?: string; currency?: string; transactionRefUrl?: string; } export interface UpiqrcodeResult { qr: string; intent: string; } export function svg_qr_code(intent: string): Promise<any>; export function upiqrcode(params: UpiqrcodeParams): Promise<any>; export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly svg_qr_code: (a: number, b: number) => any; readonly upiqrcode: (a: any) => any; readonly wasm_bindgen__convert__closures_____invoke__haeeeb3f4979a72f5: (a: number, b: number, c: any) => [number, number]; readonly wasm_bindgen__convert__closures_____invoke__h5f052b83621e37ce: (a: number, b: number, c: any, d: any) => void; readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_exn_store: (a: number) => void; readonly __externref_table_alloc: () => number; readonly __wbindgen_externrefs: WebAssembly.Table; readonly __wbindgen_destroy_closure: (a: number, b: number) => void; readonly __externref_table_dealloc: (a: number) => void; readonly __wbindgen_start: () => void; } export type SyncInitInput = BufferSource | WebAssembly.Module; /** * Instantiates the given `module`, which can either be bytes or * a precompiled `WebAssembly.Module`. * * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. * * @returns {InitOutput} */ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; /** * If `module_or_path` is {RequestInfo} or {URL}, makes a request and * for everything else, calls `WebAssembly.instantiate` directly. * * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated. * * @returns {Promise<InitOutput>} */ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;