@colyseus/schema 4.0.17 → 4.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colyseus/schema",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "description": "Binary state serializer with delta encoding for games",
5
5
  "type": "module",
6
6
  "bin": {
@@ -129,7 +129,7 @@ export class StateCallbackStrategy<TState extends IRef> {
129
129
  /**
130
130
  * Listen to property changes on a nested instance.
131
131
  */
132
- listen<TInstance extends Schema, K extends PublicPropNames<TInstance>>(
132
+ listen<TInstance, K extends PublicPropNames<TInstance>>(
133
133
  instance: TInstance,
134
134
  property: K,
135
135
  handler: PropertyChangeCallback<TInstance[K]>,