@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/typebox.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.24.43",
3
+ "version": "0.24.44",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
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 = `type-${TypeOrdinal++}`;
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 });