@colyseus/schema 5.0.4 → 5.0.6
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.cjs +1 -4
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -4
- package/build/index.mjs +1 -4
- package/build/index.mjs.map +1 -1
- package/build/types/HelperTypes.d.ts +22 -0
- package/build/types/builder.d.ts +40 -15
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/types/HelperTypes.ts +23 -0
- package/src/types/builder.ts +27 -2
package/build/index.cjs
CHANGED
|
@@ -5632,11 +5632,8 @@ class FieldBuilder {
|
|
|
5632
5632
|
function isBuilder(value) {
|
|
5633
5633
|
return value != null && value[$builder] === true;
|
|
5634
5634
|
}
|
|
5635
|
-
// ---------------------------------------------------------------------------
|
|
5636
|
-
// Factory helpers
|
|
5637
|
-
// ---------------------------------------------------------------------------
|
|
5638
5635
|
function primitive(name) {
|
|
5639
|
-
return () => new FieldBuilder(name);
|
|
5636
|
+
return (() => new FieldBuilder(name));
|
|
5640
5637
|
}
|
|
5641
5638
|
function resolveChild(child) {
|
|
5642
5639
|
if (isBuilder(child)) {
|