@colyseus/schema 5.0.13 → 5.0.14

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/build/index.js CHANGED
@@ -6226,10 +6226,11 @@
6226
6226
  * Schema ref whose `initialize` takes zero args.
6227
6227
  * - `IsOptional` is a compile-time brand for `.optional()`. Both
6228
6228
  * `HasDefault` and `IsOptional` make the field omittable in
6229
- * `BuilderInitProps<T>`. A separate brand (rather than reading
6230
- * `undefined extends V`) sidesteps a TypeScript quirk where
6231
- * class-generic-inferred `V` resolves `undefined extends V` as `true`
6232
- * even for non-undefined types.
6229
+ * `BuilderInitProps<T>`; `IsOptional` alone marks the instance property
6230
+ * `?:`. A separate brand (rather than reading `undefined extends V`)
6231
+ * keeps both correct for consumers compiling with
6232
+ * `strictNullChecks: false`, where `undefined extends V` is true for
6233
+ * every V.
6233
6234
  *
6234
6235
  * schema() reads the internal configuration via `toDefinition()` and wires
6235
6236
  * up metadata through the existing pipeline.
package/build/index.mjs CHANGED
@@ -6220,10 +6220,11 @@ registerType("stream", { constructor: StreamSchema });
6220
6220
  * Schema ref whose `initialize` takes zero args.
6221
6221
  * - `IsOptional` is a compile-time brand for `.optional()`. Both
6222
6222
  * `HasDefault` and `IsOptional` make the field omittable in
6223
- * `BuilderInitProps<T>`. A separate brand (rather than reading
6224
- * `undefined extends V`) sidesteps a TypeScript quirk where
6225
- * class-generic-inferred `V` resolves `undefined extends V` as `true`
6226
- * even for non-undefined types.
6223
+ * `BuilderInitProps<T>`; `IsOptional` alone marks the instance property
6224
+ * `?:`. A separate brand (rather than reading `undefined extends V`)
6225
+ * keeps both correct for consumers compiling with
6226
+ * `strictNullChecks: false`, where `undefined extends V` is true for
6227
+ * every V.
6227
6228
  *
6228
6229
  * schema() reads the internal configuration via `toDefinition()` and wires
6229
6230
  * up metadata through the existing pipeline.