floating-live 0.15.4 → 0.15.5

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.
@@ -88,7 +88,7 @@ class ModRoom {
88
88
  if (!res) {
89
89
  this.main.throw({ message: "无法添加房间", id: "room:add_fail" });
90
90
  }
91
- const room = this.main.call(`${platform}.room.create`, id, opt);
91
+ const room = await this.main.call(`${platform}.room.create`, id, opt);
92
92
  if (!room) {
93
93
  this.main.throw({ message: "无法创建房间", id: "room:create_fail" });
94
94
  }
@@ -6,6 +6,6 @@ export interface FloatingCommandMap {
6
6
  open: (key: string) => void;
7
7
  close: (key: string) => void;
8
8
  update: (key: string) => void;
9
- [name: `${string}.room.create`]: (id: string | number, options?: Record<string, any>) => LiveRoom;
10
- [name: `${string}.room.info`]: (id: string | number) => RoomInfo;
9
+ [name: `${string}.room.create`]: (id: string | number, options?: Record<string, any>) => Promise<LiveRoom> | LiveRoom;
10
+ [name: `${string}.room.info`]: (id: string | number) => Promise<RoomInfo>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floating-live",
3
- "version": "0.15.4",
3
+ "version": "0.15.5",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",