This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+18
View File
@@ -0,0 +1,18 @@
import { ScanCode } from '../../client/scanCode';
import { GetAdvertisingId } from '../../client/getAdvertisingId';
import { AddToHomeScreen } from '../../client/addToHomeScreen/common';
import { InitPlugins } from '../../plugin/initPlugins';
import { LiffCore } from '../../liff';
interface LiffExtendableAll {
addToHomeScreen: AddToHomeScreen;
scanCode: ScanCode;
getAdvertisingId: GetAdvertisingId;
initPlugins: InitPlugins;
}
export declare type ExtendableKeys = keyof LiffExtendableAll;
export declare type LiffExtendableFunctions = Partial<LiffExtendableAll>;
export interface LiffExtension {
install: (liff: LiffCore) => void;
}
export declare type ExtendedFunctionCreator = (liff: LiffCore) => Function;
export {};
@@ -0,0 +1,3 @@
import { LiffExtension, ExtendedFunctionCreator, ExtendableKeys } from './LiffExtension';
export declare type CreatorDefPair = [ExtendableKeys, ExtendedFunctionCreator];
export default function createExtension(creatorDefPairs: CreatorDefPair[]): LiffExtension;
+3
View File
@@ -0,0 +1,3 @@
import { LiffExtension } from './LiffExtension';
declare const ios9_18Extension: LiffExtension;
export default ios9_18Extension;
+3
View File
@@ -0,0 +1,3 @@
import { LiffExtension } from './LiffExtension';
declare const ios9_19Extension: LiffExtension;
export default ios9_19Extension;
+3
View File
@@ -0,0 +1,3 @@
import { LiffExtension } from './LiffExtension';
declare const othersExtension: LiffExtension;
export default othersExtension;
+1
View File
@@ -0,0 +1 @@
export default function fetchAndSetContext(): Promise<void>;
+1
View File
@@ -0,0 +1 @@
export default function handleLiffState(state: string): void;
@@ -0,0 +1,3 @@
export default function handleLoginAndInitFeatures(config: {
liffId: string;
}): Promise<void>;
@@ -0,0 +1 @@
export default function handleLoginExternalBrowser(): Promise<void>;
+2
View File
@@ -0,0 +1,2 @@
import LiffError from '../util/LiffError';
export default function handleOAuthError(errorType: string, errorDescription: string): LiffError;
@@ -0,0 +1 @@
export default function handleRedirectedFromLoginServer(liffClientId: string): Promise<void>;
+10
View File
@@ -0,0 +1,10 @@
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>;
+9
View File
@@ -0,0 +1,9 @@
export declare let initDone: () => void;
/**
* A property holding the Promise object that resolves when you run liff.init() for the first time after starting the LIFF app.
*
* If you use liff.ready, you can execute any process after the completion of liff.init().
*
* liff.ready can be used before liff.init() finishes initializing the LIFF app.
*/
export declare const ready: Promise<void>;
+6
View File
@@ -0,0 +1,6 @@
export interface Config {
liffId: string;
redirectUri?: string;
}
export declare type SubsequentInit = (config: Config) => Promise<void>;
export default function subsequentInit(config: Config): Promise<void>;
+1
View File
@@ -0,0 +1 @@
export default function validateFeatureToken(liffId: any, featureToken: any): boolean;