diff --git a/index.d.ts b/index.d.ts index 3a0be79..54bac34 100644 --- a/index.d.ts +++ b/index.d.ts @@ -143,6 +143,13 @@ declare global { */ function getVersion(): string + /** + * Gets the user's LINE version. + * + * If a user opens the LIFF app using an external browser, null is returned. + */ + function getLineVersion(): string | null; + /** * Gets the language settings of the environment in which the LIFF app is running. */ @@ -247,6 +254,13 @@ declare global { */ const ready: Promise; + /** + * The property that holds the LIFF app ID (String type) passed to liff.init(). + * + * The value of liff.id is null until you run liff.init(). + */ + const id: string | null; + const bluetooth: { /** * Check if the Bluetooth plugin can be used.