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 { LiffCore } from '../../liff';
declare type PluginName = 'bluetooth' | 'advertisement';
interface PluginModule {
default: (liff: LiffCore) => {} | Promise<{}>;
}
export interface Plugin {
checkSupport: (liff: LiffCore) => boolean;
load: () => Promise<PluginModule> | PluginModule;
errorMessage: string;
}
export declare type InitPlugins = (plugins: PluginName[]) => Promise<void[]>;
/**
* Verify and load and initialize plugins.
* @param {PluginNames} plugins - string array of plugin names
* @returns {Promise<any>}
*/
export default function createInitPlugins(liff: LiffCore, verification: any): InitPlugins;
export {};
@@ -0,0 +1,3 @@
import { Plugin } from '..';
declare const advertisement: Plugin;
export default advertisement;
@@ -0,0 +1,3 @@
import { Plugin } from '..';
declare const bluetooth: Plugin;
export default bluetooth;