floating-live 0.16.0-alpha.6 → 0.16.0-alpha.7

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/app.d.ts CHANGED
@@ -24,8 +24,8 @@ export declare class App extends CustomEventEmitter implements PluginContext {
24
24
  /** 取消注册插件 */
25
25
  unregister(pluginName: string): void;
26
26
  getPlugin(pluginName: string): void;
27
- whenRegister<K extends keyof AppPluginExposesMap>(pluginName: K, callback: (exposes: AppPluginExposesMap[K]) => (() => void) | undefined): void;
28
- whenRegister(pluginName: string, callback: () => (() => void) | undefined): void;
27
+ whenRegister<K extends keyof AppPluginExposesMap>(pluginName: K, callback: (exposes: AppPluginExposesMap[K]) => (() => void) | void): void;
28
+ whenRegister(pluginName: string, callback: () => (() => void) | void): void;
29
29
  getPluginExposes(pluginName: string): any;
30
30
  hasPlugin(pluginName: string): boolean;
31
31
  registerCommand<T extends keyof AppCommandMap>(name: T, func: CommandFunction<AppCommandMap[T]>, options?: CommandOptions): void;
@@ -12,6 +12,7 @@ declare module "../.." {
12
12
  update: (key: string) => void;
13
13
  "room.snapshot": () => LiveRoomData[];
14
14
  [name: `${string}.room.create`]: (id: string | number, options: Record<string, any>) => LiveRoom | Promise<LiveRoom>;
15
+ [name: `${string}.room.data`]: (id: string | number) => LiveRoomData | Promise<LiveRoomData>;
15
16
  }
16
17
  interface AppEventDetailMap {
17
18
  "live:message": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floating-live",
3
- "version": "0.16.0-alpha.6",
3
+ "version": "0.16.0-alpha.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",