@spawnco/sdk-types 0.0.2 → 0.0.4
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
- package/src/v1.ts +5 -0
package/dist/index.d.mts
CHANGED
@@ -124,5 +124,7 @@ interface Item {
|
|
124
124
|
id: string;
|
125
125
|
data?: Record<string, any>;
|
126
126
|
}
|
127
|
+
type SpawnClientSDK__V0 = Pick<SpawnClientSDK__V1, "user" | "ready">;
|
128
|
+
type SpawnServerSDK__V0 = Pick<SpawnServerSDK__V1, "room">;
|
127
129
|
|
128
|
-
export type { Item, Room, RoomInfo, RoomVisibility, SpawnClientSDK__V1, SpawnServerSDK__V1, User };
|
130
|
+
export type { Item, Room, RoomInfo, RoomVisibility, SpawnClientSDK__V0, SpawnClientSDK__V1, SpawnServerSDK__V0, SpawnServerSDK__V1, User };
|
package/dist/index.d.ts
CHANGED
@@ -124,5 +124,7 @@ interface Item {
|
|
124
124
|
id: string;
|
125
125
|
data?: Record<string, any>;
|
126
126
|
}
|
127
|
+
type SpawnClientSDK__V0 = Pick<SpawnClientSDK__V1, "user" | "ready">;
|
128
|
+
type SpawnServerSDK__V0 = Pick<SpawnServerSDK__V1, "room">;
|
127
129
|
|
128
|
-
export type { Item, Room, RoomInfo, RoomVisibility, SpawnClientSDK__V1, SpawnServerSDK__V1, User };
|
130
|
+
export type { Item, Room, RoomInfo, RoomVisibility, SpawnClientSDK__V0, SpawnClientSDK__V1, SpawnServerSDK__V0, SpawnServerSDK__V1, User };
|
package/package.json
CHANGED
package/src/v1.ts
CHANGED
@@ -153,3 +153,8 @@ export interface Item {
|
|
153
153
|
id: string;
|
154
154
|
data?: Record<string, any>;
|
155
155
|
}
|
156
|
+
|
157
|
+
// v0 sdk types for testing
|
158
|
+
|
159
|
+
export type SpawnClientSDK__V0 = Pick<SpawnClientSDK__V1, "user" | "ready">;
|
160
|
+
export type SpawnServerSDK__V0 = Pick<SpawnServerSDK__V1, "room">;
|