@sinclair/typebox 0.24.43 → 0.24.44
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 +1 -1
- package/typebox.js +1 -1
package/package.json
CHANGED
package/typebox.js
CHANGED
|
@@ -271,7 +271,7 @@ class TypeBuilder {
|
|
|
271
271
|
/** Creates a recursive object type */
|
|
272
272
|
Recursive(callback, options = {}) {
|
|
273
273
|
if (options.$id === undefined)
|
|
274
|
-
options.$id = `
|
|
274
|
+
options.$id = `T${TypeOrdinal++}`;
|
|
275
275
|
const self = callback({ [exports.Kind]: 'Self', $ref: `${options.$id}` });
|
|
276
276
|
self.$id = options.$id;
|
|
277
277
|
return this.Create({ ...options, ...self });
|