@colyseus/schema
Advanced tools
Comparing version 2.0.23 to 2.0.24
@@ -10,3 +10,3 @@ import { ArraySchema } from "./ArraySchema"; | ||
export type ToJSON<T> = NonFunctionProps<{ | ||
[K in keyof T]: T[K] extends MapSchema<infer U> ? Record<string, U> : T[K] extends ArraySchema<infer U> ? U[] : T[K]; | ||
[K in keyof T]: T[K] extends MapSchema<infer U> ? Record<string, U> : T[K] extends Map<string, infer U> ? Record<string, U> : T[K] extends ArraySchema<infer U> ? U[] : T[K]; | ||
}>; |
{ | ||
"name": "@colyseus/schema", | ||
"version": "2.0.23", | ||
"version": "2.0.24", | ||
"description": "Binary state serializer with delta encoding for games", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -15,5 +15,7 @@ import { ArraySchema } from "./ArraySchema"; | ||
? Record<string, U> | ||
: T[K] extends ArraySchema<infer U> | ||
? U[] | ||
: T[K] | ||
: T[K] extends Map<string, infer U> | ||
? Record<string, U> | ||
: T[K] extends ArraySchema<infer U> | ||
? U[] | ||
: T[K] | ||
}>; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1650434
20482