line_push/node_modules/@line/liff/dist/lib/init/index.d.ts
2022-07-21 03:28:35 +00:00

11 lines
415 B
TypeScript

import { LiffCore } from '../liff';
/**
* Initializes a LIFF app.
* You can only call other LIFF SDK methods after calling liff.init().
* The LIFF SDK gets access tokens and ID tokens from the LINE platform
* when you initialize the LIFF app.
*/
export default function init(this: LiffCore, config: {
liffId: string;
}, successCallback?: () => void, errorCallback?: (error: Error) => void): Promise<void>;