floating-live 0.16.0-alpha.8 → 0.16.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugin/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/plugin/types.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export interface PluginContext {
|
|
|
39
39
|
/** 获取插件暴露对象 */
|
|
40
40
|
getPluginExposes<K extends keyof AppPluginExposesMap>(pluginName: K): AppPluginExposesMap[K];
|
|
41
41
|
/** 等待plugin注册 */
|
|
42
|
-
whenRegister<K extends keyof AppPluginExposesMap>(pluginName: K, callback: (exposes: AppPluginExposesMap[K]) => (() => void) |
|
|
42
|
+
whenRegister<K extends keyof AppPluginExposesMap>(pluginName: K, callback: (exposes: AppPluginExposesMap[K]) => (() => void) | void): void;
|
|
43
43
|
whenRegister(pluginName: string, callback: () => (() => void) | void): void;
|
|
44
44
|
/** 是否存在插件 */
|
|
45
45
|
hasPlugin(pluginName: string): boolean;
|