Skip to content

Commit 1e9f020

Browse files
committed
Cocos Creator: fix sharing bundled types with server types for callbacks
1 parent 4d6f20b commit 1e9f020

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@colyseus/schema",
3-
"version": "4.0.7",
3+
"version": "4.0.8",
44
"description": "Binary state serializer with delta encoding for games",
55
"type": "module",
66
"bin": {

src/encoder/ChangeTree.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ declare global {
2323
}
2424

2525
export interface IRef {
26-
[$changes]?: ChangeTree;
26+
// FIXME: we only commented this out to allow mixing @colyseus/schema bundled types with server types in Cocos Creator
27+
// [$changes]?: ChangeTree;
2728
[$refId]?: number;
2829
[$getByIndex]?: (index: number, isEncodeAll?: boolean) => any;
2930
[$deleteByIndex]?: (index: number) => void;

0 commit comments

Comments
 (0)