@spawnco/sdk-types 0.0.56 → 0.0.60
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 +2 -20
- package/dist/index.d.ts +2 -20
- package/package.json +1 -1
- package/src/v1.ts +1 -6
package/dist/index.d.mts
CHANGED
|
@@ -23,26 +23,8 @@ interface SoundSettings {
|
|
|
23
23
|
voice: number;
|
|
24
24
|
}
|
|
25
25
|
type GameSpecMutation = {
|
|
26
|
-
kind:
|
|
27
|
-
|
|
28
|
-
spec: Record<string, unknown>;
|
|
29
|
-
} | {
|
|
30
|
-
kind: 'destroy';
|
|
31
|
-
id: string;
|
|
32
|
-
} | {
|
|
33
|
-
kind: 'setProperty';
|
|
34
|
-
id: string;
|
|
35
|
-
key: string;
|
|
36
|
-
value: unknown;
|
|
37
|
-
} | {
|
|
38
|
-
kind: 'replaceState';
|
|
39
|
-
id: string;
|
|
40
|
-
state: Record<string, unknown>;
|
|
41
|
-
} | {
|
|
42
|
-
kind: 'patchState';
|
|
43
|
-
id: string;
|
|
44
|
-
patch: Record<string, unknown>;
|
|
45
|
-
};
|
|
26
|
+
kind: string;
|
|
27
|
+
} & Record<string, unknown>;
|
|
46
28
|
interface GameSpecMutationResult {
|
|
47
29
|
appId: string;
|
|
48
30
|
version: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,26 +23,8 @@ interface SoundSettings {
|
|
|
23
23
|
voice: number;
|
|
24
24
|
}
|
|
25
25
|
type GameSpecMutation = {
|
|
26
|
-
kind:
|
|
27
|
-
|
|
28
|
-
spec: Record<string, unknown>;
|
|
29
|
-
} | {
|
|
30
|
-
kind: 'destroy';
|
|
31
|
-
id: string;
|
|
32
|
-
} | {
|
|
33
|
-
kind: 'setProperty';
|
|
34
|
-
id: string;
|
|
35
|
-
key: string;
|
|
36
|
-
value: unknown;
|
|
37
|
-
} | {
|
|
38
|
-
kind: 'replaceState';
|
|
39
|
-
id: string;
|
|
40
|
-
state: Record<string, unknown>;
|
|
41
|
-
} | {
|
|
42
|
-
kind: 'patchState';
|
|
43
|
-
id: string;
|
|
44
|
-
patch: Record<string, unknown>;
|
|
45
|
-
};
|
|
26
|
+
kind: string;
|
|
27
|
+
} & Record<string, unknown>;
|
|
46
28
|
interface GameSpecMutationResult {
|
|
47
29
|
appId: string;
|
|
48
30
|
version: number;
|
package/package.json
CHANGED
package/src/v1.ts
CHANGED
|
@@ -27,12 +27,7 @@ export interface SoundSettings {
|
|
|
27
27
|
voice: number; // 0-1
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export type GameSpecMutation =
|
|
31
|
-
| { kind: 'spawn'; id: string; spec: Record<string, unknown> }
|
|
32
|
-
| { kind: 'destroy'; id: string }
|
|
33
|
-
| { kind: 'setProperty'; id: string; key: string; value: unknown }
|
|
34
|
-
| { kind: 'replaceState'; id: string; state: Record<string, unknown> }
|
|
35
|
-
| { kind: 'patchState'; id: string; patch: Record<string, unknown> };
|
|
30
|
+
export type GameSpecMutation = { kind: string } & Record<string, unknown>;
|
|
36
31
|
|
|
37
32
|
export interface GameSpecMutationResult {
|
|
38
33
|
appId: string;
|