@sinclair/typebox 0.32.0-dev-22 → 0.32.0-dev-24

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 (100) hide show
  1. package/build/import/compiler/compiler.d.mts +3 -2
  2. package/build/import/compiler/compiler.mjs +3 -2
  3. package/build/import/errors/errors.d.mts +2 -1
  4. package/build/import/errors/errors.mjs +2 -1
  5. package/build/import/index.d.mts +1 -0
  6. package/build/import/index.mjs +1 -0
  7. package/build/import/system/system.d.mts +3 -2
  8. package/build/import/system/system.mjs +3 -2
  9. package/build/import/type/error/error.d.mts +4 -0
  10. package/build/import/type/error/error.mjs +6 -0
  11. package/build/import/type/error/index.d.mts +1 -0
  12. package/build/import/type/error/index.mjs +1 -0
  13. package/build/import/type/extends/extends-check.d.mts +2 -1
  14. package/build/import/type/extends/extends-check.mjs +2 -1
  15. package/build/import/type/guard/type.d.mts +2 -1
  16. package/build/import/type/guard/type.mjs +2 -1
  17. package/build/import/type/index.d.mts +1 -0
  18. package/build/import/type/index.mjs +1 -0
  19. package/build/import/type/record/record.d.mts +1 -1
  20. package/build/import/type/template-literal/finite.d.mts +2 -1
  21. package/build/import/type/template-literal/finite.mjs +2 -1
  22. package/build/import/type/template-literal/generate.d.mts +3 -2
  23. package/build/import/type/template-literal/generate.mjs +2 -1
  24. package/build/import/type/template-literal/parse.d.mts +2 -1
  25. package/build/import/type/template-literal/parse.mjs +2 -1
  26. package/build/import/type/template-literal/pattern.d.mts +2 -1
  27. package/build/import/type/template-literal/pattern.mjs +2 -1
  28. package/build/import/value/cast/cast.d.mts +5 -4
  29. package/build/import/value/cast/cast.mjs +5 -4
  30. package/build/import/value/check/check.d.mts +2 -1
  31. package/build/import/value/check/check.mjs +2 -1
  32. package/build/import/value/convert/convert.d.mts +2 -1
  33. package/build/import/value/convert/convert.mjs +2 -1
  34. package/build/import/value/create/create.d.mts +7 -6
  35. package/build/import/value/create/create.mjs +7 -6
  36. package/build/import/value/delta/delta.d.mts +3 -2
  37. package/build/import/value/delta/delta.mjs +3 -2
  38. package/build/import/value/deref/deref.d.mts +2 -1
  39. package/build/import/value/deref/deref.mjs +2 -1
  40. package/build/import/value/hash/hash.d.mts +2 -1
  41. package/build/import/value/hash/hash.mjs +2 -1
  42. package/build/import/value/mutate/mutate.d.mts +3 -2
  43. package/build/import/value/mutate/mutate.mjs +3 -2
  44. package/build/import/value/pointer/pointer.d.mts +3 -2
  45. package/build/import/value/pointer/pointer.mjs +3 -2
  46. package/build/import/value/transform/decode.d.mts +3 -2
  47. package/build/import/value/transform/decode.mjs +3 -2
  48. package/build/import/value/transform/encode.d.mts +3 -2
  49. package/build/import/value/transform/encode.mjs +3 -2
  50. package/build/require/compiler/compiler.d.ts +3 -2
  51. package/build/require/compiler/compiler.js +61 -60
  52. package/build/require/errors/errors.d.ts +2 -1
  53. package/build/require/errors/errors.js +34 -33
  54. package/build/require/index.d.ts +1 -0
  55. package/build/require/index.js +154 -152
  56. package/build/require/system/system.d.ts +3 -2
  57. package/build/require/system/system.js +3 -2
  58. package/build/require/type/error/error.d.ts +4 -0
  59. package/build/require/type/error/error.js +11 -0
  60. package/build/require/type/error/index.d.ts +1 -0
  61. package/build/require/type/error/index.js +18 -0
  62. package/build/require/type/extends/extends-check.d.ts +2 -1
  63. package/build/require/type/extends/extends-check.js +172 -171
  64. package/build/require/type/guard/type.d.ts +2 -1
  65. package/build/require/type/guard/type.js +2 -1
  66. package/build/require/type/index.d.ts +1 -0
  67. package/build/require/type/index.js +1 -0
  68. package/build/require/type/record/record.d.ts +1 -1
  69. package/build/require/type/template-literal/finite.d.ts +2 -1
  70. package/build/require/type/template-literal/finite.js +2 -1
  71. package/build/require/type/template-literal/generate.d.ts +3 -2
  72. package/build/require/type/template-literal/generate.js +2 -1
  73. package/build/require/type/template-literal/parse.d.ts +2 -1
  74. package/build/require/type/template-literal/parse.js +3 -2
  75. package/build/require/type/template-literal/pattern.d.ts +2 -1
  76. package/build/require/type/template-literal/pattern.js +2 -1
  77. package/build/require/value/cast/cast.d.ts +5 -4
  78. package/build/require/value/cast/cast.js +36 -35
  79. package/build/require/value/check/check.d.ts +2 -1
  80. package/build/require/value/check/check.js +24 -23
  81. package/build/require/value/convert/convert.d.ts +2 -1
  82. package/build/require/value/convert/convert.js +32 -31
  83. package/build/require/value/create/create.d.ts +7 -6
  84. package/build/require/value/create/create.js +7 -6
  85. package/build/require/value/delta/delta.d.ts +3 -2
  86. package/build/require/value/delta/delta.js +20 -19
  87. package/build/require/value/deref/deref.d.ts +2 -1
  88. package/build/require/value/deref/deref.js +2 -1
  89. package/build/require/value/hash/hash.d.ts +2 -1
  90. package/build/require/value/hash/hash.js +2 -1
  91. package/build/require/value/mutate/mutate.d.ts +3 -2
  92. package/build/require/value/mutate/mutate.js +3 -2
  93. package/build/require/value/pointer/pointer.d.ts +3 -2
  94. package/build/require/value/pointer/pointer.js +3 -2
  95. package/build/require/value/transform/decode.d.ts +3 -2
  96. package/build/require/value/transform/decode.js +19 -18
  97. package/build/require/value/transform/encode.d.ts +3 -2
  98. package/build/require/value/transform/encode.js +20 -19
  99. package/package.json +1 -1
  100. package/readme.md +117 -137
@@ -7,15 +7,16 @@ const index_2 = require("../type/keyof/index");
7
7
  const index_3 = require("../type/registry/index");
8
8
  const extends_undefined_1 = require("../type/extends/extends-undefined");
9
9
  const function_1 = require("./function");
10
- const index_4 = require("../value/deref/index");
11
- const index_5 = require("../value/hash/index");
12
- const index_6 = require("../type/symbols/index");
13
- const index_7 = require("../type/never/index");
10
+ const index_4 = require("../type/error/index");
11
+ const index_5 = require("../value/deref/index");
12
+ const index_6 = require("../value/hash/index");
13
+ const index_7 = require("../type/symbols/index");
14
+ const index_8 = require("../type/never/index");
14
15
  // ------------------------------------------------------------------
15
16
  // ValueGuard
16
17
  // ------------------------------------------------------------------
17
18
  // prettier-ignore
18
- const index_8 = require("../value/guard/index");
19
+ const index_9 = require("../value/guard/index");
19
20
  // ------------------------------------------------------------------
20
21
  // ValueErrorType
21
22
  // ------------------------------------------------------------------
@@ -88,7 +89,7 @@ var ValueErrorType;
88
89
  // ------------------------------------------------------------------
89
90
  // ValueErrors
90
91
  // ------------------------------------------------------------------
91
- class ValueErrorsUnknownTypeError extends Error {
92
+ class ValueErrorsUnknownTypeError extends index_4.TypeBoxError {
92
93
  constructor(schema) {
93
94
  super('Unknown type');
94
95
  this.schema = schema;
@@ -135,7 +136,7 @@ function Create(type, schema, path, value) {
135
136
  // --------------------------------------------------------------------------
136
137
  function* FromAny(schema, references, path, value) { }
137
138
  function* FromArray(schema, references, path, value) {
138
- if (!(0, index_8.IsArray)(value)) {
139
+ if (!(0, index_9.IsArray)(value)) {
139
140
  return yield Create(ValueErrorType.Array, schema, path, value);
140
141
  }
141
142
  if (IsDefined(schema.minItems) && !(value.length >= schema.minItems)) {
@@ -149,7 +150,7 @@ function* FromArray(schema, references, path, value) {
149
150
  }
150
151
  // prettier-ignore
151
152
  if (schema.uniqueItems === true && !((function () { const set = new Set(); for (const element of value) {
152
- const hashed = (0, index_5.Hash)(element);
153
+ const hashed = (0, index_6.Hash)(element);
153
154
  if (set.has(hashed)) {
154
155
  return false;
155
156
  }
@@ -163,24 +164,24 @@ function* FromArray(schema, references, path, value) {
163
164
  if (!(IsDefined(schema.contains) || IsDefined(schema.minContains) || IsDefined(schema.maxContains))) {
164
165
  return;
165
166
  }
166
- const containsSchema = IsDefined(schema.contains) ? schema.contains : (0, index_7.Never)();
167
+ const containsSchema = IsDefined(schema.contains) ? schema.contains : (0, index_8.Never)();
167
168
  const containsCount = value.reduce((acc, value, index) => (Visit(containsSchema, references, `${path}${index}`, value).next().done === true ? acc + 1 : acc), 0);
168
169
  if (containsCount === 0) {
169
170
  yield Create(ValueErrorType.ArrayContains, schema, path, value);
170
171
  }
171
- if ((0, index_8.IsNumber)(schema.minContains) && containsCount < schema.minContains) {
172
+ if ((0, index_9.IsNumber)(schema.minContains) && containsCount < schema.minContains) {
172
173
  yield Create(ValueErrorType.ArrayMinContains, schema, path, value);
173
174
  }
174
- if ((0, index_8.IsNumber)(schema.maxContains) && containsCount > schema.maxContains) {
175
+ if ((0, index_9.IsNumber)(schema.maxContains) && containsCount > schema.maxContains) {
175
176
  yield Create(ValueErrorType.ArrayMaxContains, schema, path, value);
176
177
  }
177
178
  }
178
179
  function* FromAsyncIterator(schema, references, path, value) {
179
- if (!(0, index_8.IsAsyncIterator)(value))
180
+ if (!(0, index_9.IsAsyncIterator)(value))
180
181
  yield Create(ValueErrorType.AsyncIterator, schema, path, value);
181
182
  }
182
183
  function* FromBigInt(schema, references, path, value) {
183
- if (!(0, index_8.IsBigInt)(value))
184
+ if (!(0, index_9.IsBigInt)(value))
184
185
  return yield Create(ValueErrorType.BigInt, schema, path, value);
185
186
  if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
186
187
  yield Create(ValueErrorType.BigIntExclusiveMaximum, schema, path, value);
@@ -199,14 +200,14 @@ function* FromBigInt(schema, references, path, value) {
199
200
  }
200
201
  }
201
202
  function* FromBoolean(schema, references, path, value) {
202
- if (!(0, index_8.IsBoolean)(value))
203
+ if (!(0, index_9.IsBoolean)(value))
203
204
  yield Create(ValueErrorType.Boolean, schema, path, value);
204
205
  }
205
206
  function* FromConstructor(schema, references, path, value) {
206
207
  yield* Visit(schema.returns, references, path, value.prototype);
207
208
  }
208
209
  function* FromDate(schema, references, path, value) {
209
- if (!(0, index_8.IsDate)(value))
210
+ if (!(0, index_9.IsDate)(value))
210
211
  return yield Create(ValueErrorType.Date, schema, path, value);
211
212
  if (IsDefined(schema.exclusiveMaximumTimestamp) && !(value.getTime() < schema.exclusiveMaximumTimestamp)) {
212
213
  yield Create(ValueErrorType.DateExclusiveMaximumTimestamp, schema, path, value);
@@ -225,11 +226,11 @@ function* FromDate(schema, references, path, value) {
225
226
  }
226
227
  }
227
228
  function* FromFunction(schema, references, path, value) {
228
- if (!(0, index_8.IsFunction)(value))
229
+ if (!(0, index_9.IsFunction)(value))
229
230
  yield Create(ValueErrorType.Function, schema, path, value);
230
231
  }
231
232
  function* FromInteger(schema, references, path, value) {
232
- if (!(0, index_8.IsInteger)(value))
233
+ if (!(0, index_9.IsInteger)(value))
233
234
  return yield Create(ValueErrorType.Integer, schema, path, value);
234
235
  if (IsDefined(schema.exclusiveMaximum) && !(value < schema.exclusiveMaximum)) {
235
236
  yield Create(ValueErrorType.IntegerExclusiveMaximum, schema, path, value);
@@ -275,7 +276,7 @@ function* FromIntersect(schema, references, path, value) {
275
276
  }
276
277
  }
277
278
  function* FromIterator(schema, references, path, value) {
278
- if (!(0, index_8.IsIterator)(value))
279
+ if (!(0, index_9.IsIterator)(value))
279
280
  yield Create(ValueErrorType.Iterator, schema, path, value);
280
281
  }
281
282
  function* FromLiteral(schema, references, path, value) {
@@ -290,7 +291,7 @@ function* FromNot(schema, references, path, value) {
290
291
  yield Create(ValueErrorType.Not, schema, path, value);
291
292
  }
292
293
  function* FromNull(schema, references, path, value) {
293
- if (!(0, index_8.IsNull)(value))
294
+ if (!(0, index_9.IsNull)(value))
294
295
  yield Create(ValueErrorType.Null, schema, path, value);
295
296
  }
296
297
  function* FromNumber(schema, references, path, value) {
@@ -359,7 +360,7 @@ function* FromObject(schema, references, path, value) {
359
360
  }
360
361
  }
361
362
  function* FromPromise(schema, references, path, value) {
362
- if (!(0, index_8.IsPromise)(value))
363
+ if (!(0, index_9.IsPromise)(value))
363
364
  yield Create(ValueErrorType.Promise, schema, path, value);
364
365
  }
365
366
  function* FromRecord(schema, references, path, value) {
@@ -392,10 +393,10 @@ function* FromRecord(schema, references, path, value) {
392
393
  }
393
394
  }
394
395
  function* FromRef(schema, references, path, value) {
395
- yield* Visit((0, index_4.Deref)(schema, references), references, path, value);
396
+ yield* Visit((0, index_5.Deref)(schema, references), references, path, value);
396
397
  }
397
398
  function* FromString(schema, references, path, value) {
398
- if (!(0, index_8.IsString)(value))
399
+ if (!(0, index_9.IsString)(value))
399
400
  return yield Create(ValueErrorType.String, schema, path, value);
400
401
  if (IsDefined(schema.minLength) && !(value.length >= schema.minLength)) {
401
402
  yield Create(ValueErrorType.StringMinLength, schema, path, value);
@@ -403,13 +404,13 @@ function* FromString(schema, references, path, value) {
403
404
  if (IsDefined(schema.maxLength) && !(value.length <= schema.maxLength)) {
404
405
  yield Create(ValueErrorType.StringMaxLength, schema, path, value);
405
406
  }
406
- if ((0, index_8.IsString)(schema.pattern)) {
407
+ if ((0, index_9.IsString)(schema.pattern)) {
407
408
  const regex = new RegExp(schema.pattern);
408
409
  if (!regex.test(value)) {
409
410
  yield Create(ValueErrorType.StringPattern, schema, path, value);
410
411
  }
411
412
  }
412
- if ((0, index_8.IsString)(schema.format)) {
413
+ if ((0, index_9.IsString)(schema.format)) {
413
414
  if (!index_3.FormatRegistry.Has(schema.format)) {
414
415
  yield Create(ValueErrorType.StringFormatUnknown, schema, path, value);
415
416
  }
@@ -422,11 +423,11 @@ function* FromString(schema, references, path, value) {
422
423
  }
423
424
  }
424
425
  function* FromSymbol(schema, references, path, value) {
425
- if (!(0, index_8.IsSymbol)(value))
426
+ if (!(0, index_9.IsSymbol)(value))
426
427
  yield Create(ValueErrorType.Symbol, schema, path, value);
427
428
  }
428
429
  function* FromTemplateLiteral(schema, references, path, value) {
429
- if (!(0, index_8.IsString)(value))
430
+ if (!(0, index_9.IsString)(value))
430
431
  return yield Create(ValueErrorType.String, schema, path, value);
431
432
  const regex = new RegExp(schema.pattern);
432
433
  if (!regex.test(value)) {
@@ -434,10 +435,10 @@ function* FromTemplateLiteral(schema, references, path, value) {
434
435
  }
435
436
  }
436
437
  function* FromThis(schema, references, path, value) {
437
- yield* Visit((0, index_4.Deref)(schema, references), references, path, value);
438
+ yield* Visit((0, index_5.Deref)(schema, references), references, path, value);
438
439
  }
439
440
  function* FromTuple(schema, references, path, value) {
440
- if (!(0, index_8.IsArray)(value))
441
+ if (!(0, index_9.IsArray)(value))
441
442
  return yield Create(ValueErrorType.Tuple, schema, path, value);
442
443
  if (schema.items === undefined && !(value.length === 0)) {
443
444
  return yield Create(ValueErrorType.TupleLength, schema, path, value);
@@ -453,7 +454,7 @@ function* FromTuple(schema, references, path, value) {
453
454
  }
454
455
  }
455
456
  function* FromUndefined(schema, references, path, value) {
456
- if (!(0, index_8.IsUndefined)(value))
457
+ if (!(0, index_9.IsUndefined)(value))
457
458
  yield Create(ValueErrorType.Undefined, schema, path, value);
458
459
  }
459
460
  function* FromUnion(schema, references, path, value) {
@@ -469,7 +470,7 @@ function* FromUnion(schema, references, path, value) {
469
470
  }
470
471
  }
471
472
  function* FromUint8Array(schema, references, path, value) {
472
- if (!(0, index_8.IsUint8Array)(value))
473
+ if (!(0, index_9.IsUint8Array)(value))
473
474
  return yield Create(ValueErrorType.Uint8Array, schema, path, value);
474
475
  if (IsDefined(schema.maxByteLength) && !(value.length <= schema.maxByteLength)) {
475
476
  yield Create(ValueErrorType.Uint8ArrayMaxByteLength, schema, path, value);
@@ -484,14 +485,14 @@ function* FromVoid(schema, references, path, value) {
484
485
  yield Create(ValueErrorType.Void, schema, path, value);
485
486
  }
486
487
  function* FromKind(schema, references, path, value) {
487
- const check = index_3.TypeRegistry.Get(schema[index_6.Kind]);
488
+ const check = index_3.TypeRegistry.Get(schema[index_7.Kind]);
488
489
  if (!check(schema, value))
489
490
  yield Create(ValueErrorType.Kind, schema, path, value);
490
491
  }
491
492
  function* Visit(schema, references, path, value) {
492
493
  const references_ = IsDefined(schema.$id) ? [...references, schema] : references;
493
494
  const schema_ = schema;
494
- switch (schema_[index_6.Kind]) {
495
+ switch (schema_[index_7.Kind]) {
495
496
  case 'Any':
496
497
  return yield* FromAny(schema_, references_, path, value);
497
498
  case 'Array':
@@ -553,7 +554,7 @@ function* Visit(schema, references, path, value) {
553
554
  case 'Void':
554
555
  return yield* FromVoid(schema_, references_, path, value);
555
556
  default:
556
- if (!index_3.TypeRegistry.Has(schema_[index_6.Kind]))
557
+ if (!index_3.TypeRegistry.Has(schema_[index_7.Kind]))
557
558
  throw new ValueErrorsUnknownTypeError(schema);
558
559
  return yield* FromKind(schema_, references_, path, value);
559
560
  }
@@ -3,6 +3,7 @@ export { PatternBoolean, PatternBooleanExact, PatternNumber, PatternNumberExact,
3
3
  export { TypeRegistry, FormatRegistry } from './type/registry/index';
4
4
  export { TypeGuard, ValueGuard } from './type/guard/index';
5
5
  export { CloneType, CloneRest } from './type/clone/type';
6
+ export { TypeBoxError } from './type/error/index';
6
7
  export { Any, type TAny } from './type/any/index';
7
8
  export { Array, type TArray, type ArrayOptions } from './type/array/index';
8
9
  export { AsyncIterator, type TAsyncIterator } from './type/async-iterator/index';
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Lowercase = exports.Capitalize = exports.IntrinsicFromMappedKey = exports.Intrinsic = exports.Iterator = exports.IntersectEvaluated = exports.Intersect = exports.Integer = exports.InstanceType = exports.IndexFromMappedKey = exports.IndexPropertyKeys = exports.Index = exports.Increment = exports.Function = exports.Extract = exports.ExtendsUndefinedCheck = exports.ExtendsResult = exports.ExtendsCheck = exports.Extends = exports.Exclude = exports.Enum = exports.Deref = exports.Date = exports.ConstructorParameters = exports.Constructor = exports.Const = exports.Composite = exports.Boolean = exports.BigInt = exports.Awaited = exports.AsyncIterator = exports.Array = exports.Any = exports.CloneRest = exports.CloneType = exports.ValueGuard = exports.TypeGuard = exports.FormatRegistry = exports.TypeRegistry = exports.PatternStringExact = exports.PatternString = exports.PatternNumberExact = exports.PatternNumber = exports.PatternBooleanExact = exports.PatternBoolean = exports.TransformKind = exports.OptionalKind = exports.ReadonlyKind = exports.Hint = exports.Kind = void 0;
5
- exports.UnionEvaluated = exports.Union = exports.Undefined = exports.Uint8Array = exports.Tuple = exports.TransformEncodeBuilder = exports.TransformDecodeBuilder = exports.Transform = exports.TemplateLiteralExpressionGenerate = exports.TemplateLiteralGenerate = exports.TemplateLiteralParseExact = exports.TemplateLiteralParse = exports.IsTemplateLiteralExpressionFinite = exports.IsTemplateLiteralFinite = exports.TemplateLiteral = exports.Symbol = exports.String = exports.Strict = exports.ReturnType = exports.Rest = exports.Required = exports.RegExp = exports.Ref = exports.Recursive = exports.Record = exports.ReadonlyOptional = exports.ReadonlyFromMappedResult = exports.Readonly = exports.Promise = exports.Pick = exports.PartialFromMappedResult = exports.Partial = exports.Parameters = exports.OptionalFromMappedResult = exports.Optional = exports.Omit = exports.Object = exports.Number = exports.Null = exports.Not = exports.Never = exports.MappedResult = exports.MappedKey = exports.Mapped = exports.Literal = exports.KeyOfPattern = exports.KeyOfPropertyKeys = exports.KeyOf = exports.Uppercase = exports.Uncapitalize = void 0;
6
- exports.JavaScriptTypeBuilder = exports.JsonTypeBuilder = exports.Type = exports.Void = exports.Unsafe = exports.Unknown = void 0;
4
+ exports.Capitalize = exports.IntrinsicFromMappedKey = exports.Intrinsic = exports.Iterator = exports.IntersectEvaluated = exports.Intersect = exports.Integer = exports.InstanceType = exports.IndexFromMappedKey = exports.IndexPropertyKeys = exports.Index = exports.Increment = exports.Function = exports.Extract = exports.ExtendsUndefinedCheck = exports.ExtendsResult = exports.ExtendsCheck = exports.Extends = exports.Exclude = exports.Enum = exports.Deref = exports.Date = exports.ConstructorParameters = exports.Constructor = exports.Const = exports.Composite = exports.Boolean = exports.BigInt = exports.Awaited = exports.AsyncIterator = exports.Array = exports.Any = exports.TypeBoxError = exports.CloneRest = exports.CloneType = exports.ValueGuard = exports.TypeGuard = exports.FormatRegistry = exports.TypeRegistry = exports.PatternStringExact = exports.PatternString = exports.PatternNumberExact = exports.PatternNumber = exports.PatternBooleanExact = exports.PatternBoolean = exports.TransformKind = exports.OptionalKind = exports.ReadonlyKind = exports.Hint = exports.Kind = void 0;
5
+ exports.Union = exports.Undefined = exports.Uint8Array = exports.Tuple = exports.TransformEncodeBuilder = exports.TransformDecodeBuilder = exports.Transform = exports.TemplateLiteralExpressionGenerate = exports.TemplateLiteralGenerate = exports.TemplateLiteralParseExact = exports.TemplateLiteralParse = exports.IsTemplateLiteralExpressionFinite = exports.IsTemplateLiteralFinite = exports.TemplateLiteral = exports.Symbol = exports.String = exports.Strict = exports.ReturnType = exports.Rest = exports.Required = exports.RegExp = exports.Ref = exports.Recursive = exports.Record = exports.ReadonlyOptional = exports.ReadonlyFromMappedResult = exports.Readonly = exports.Promise = exports.Pick = exports.PartialFromMappedResult = exports.Partial = exports.Parameters = exports.OptionalFromMappedResult = exports.Optional = exports.Omit = exports.Object = exports.Number = exports.Null = exports.Not = exports.Never = exports.MappedResult = exports.MappedKey = exports.Mapped = exports.Literal = exports.KeyOfPattern = exports.KeyOfPropertyKeys = exports.KeyOf = exports.Uppercase = exports.Uncapitalize = exports.Lowercase = void 0;
6
+ exports.JavaScriptTypeBuilder = exports.JsonTypeBuilder = exports.Type = exports.Void = exports.Unsafe = exports.Unknown = exports.UnionEvaluated = void 0;
7
7
  // ------------------------------------------------------------------
8
8
  // Infrastructure
9
9
  // ------------------------------------------------------------------
@@ -29,158 +29,160 @@ Object.defineProperty(exports, "ValueGuard", { enumerable: true, get: function (
29
29
  var type_1 = require("./type/clone/type");
30
30
  Object.defineProperty(exports, "CloneType", { enumerable: true, get: function () { return type_1.CloneType; } });
31
31
  Object.defineProperty(exports, "CloneRest", { enumerable: true, get: function () { return type_1.CloneRest; } });
32
+ var index_5 = require("./type/error/index");
33
+ Object.defineProperty(exports, "TypeBoxError", { enumerable: true, get: function () { return index_5.TypeBoxError; } });
32
34
  // ------------------------------------------------------------------
33
35
  // Type
34
36
  // ------------------------------------------------------------------
35
- var index_5 = require("./type/any/index");
36
- Object.defineProperty(exports, "Any", { enumerable: true, get: function () { return index_5.Any; } });
37
- var index_6 = require("./type/array/index");
38
- Object.defineProperty(exports, "Array", { enumerable: true, get: function () { return index_6.Array; } });
39
- var index_7 = require("./type/async-iterator/index");
40
- Object.defineProperty(exports, "AsyncIterator", { enumerable: true, get: function () { return index_7.AsyncIterator; } });
41
- var index_8 = require("./type/awaited/index");
42
- Object.defineProperty(exports, "Awaited", { enumerable: true, get: function () { return index_8.Awaited; } });
43
- var index_9 = require("./type/bigint/index");
44
- Object.defineProperty(exports, "BigInt", { enumerable: true, get: function () { return index_9.BigInt; } });
45
- var index_10 = require("./type/boolean/index");
46
- Object.defineProperty(exports, "Boolean", { enumerable: true, get: function () { return index_10.Boolean; } });
47
- var index_11 = require("./type/composite/index");
48
- Object.defineProperty(exports, "Composite", { enumerable: true, get: function () { return index_11.Composite; } });
49
- var index_12 = require("./type/const/index");
50
- Object.defineProperty(exports, "Const", { enumerable: true, get: function () { return index_12.Const; } });
51
- var index_13 = require("./type/constructor/index");
52
- Object.defineProperty(exports, "Constructor", { enumerable: true, get: function () { return index_13.Constructor; } });
53
- var index_14 = require("./type/constructor-parameters/index");
54
- Object.defineProperty(exports, "ConstructorParameters", { enumerable: true, get: function () { return index_14.ConstructorParameters; } });
55
- var index_15 = require("./type/date/index");
56
- Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return index_15.Date; } });
57
- var index_16 = require("./type/deref/index");
58
- Object.defineProperty(exports, "Deref", { enumerable: true, get: function () { return index_16.Deref; } });
59
- var index_17 = require("./type/enum/index");
60
- Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return index_17.Enum; } });
61
- var index_18 = require("./type/exclude/index");
62
- Object.defineProperty(exports, "Exclude", { enumerable: true, get: function () { return index_18.Exclude; } });
63
- var index_19 = require("./type/extends/index");
64
- Object.defineProperty(exports, "Extends", { enumerable: true, get: function () { return index_19.Extends; } });
65
- Object.defineProperty(exports, "ExtendsCheck", { enumerable: true, get: function () { return index_19.ExtendsCheck; } });
66
- Object.defineProperty(exports, "ExtendsResult", { enumerable: true, get: function () { return index_19.ExtendsResult; } });
67
- Object.defineProperty(exports, "ExtendsUndefinedCheck", { enumerable: true, get: function () { return index_19.ExtendsUndefinedCheck; } });
68
- var index_20 = require("./type/extract/index");
69
- Object.defineProperty(exports, "Extract", { enumerable: true, get: function () { return index_20.Extract; } });
70
- var index_21 = require("./type/function/index");
71
- Object.defineProperty(exports, "Function", { enumerable: true, get: function () { return index_21.Function; } });
72
- var index_22 = require("./type/helpers/index");
73
- Object.defineProperty(exports, "Increment", { enumerable: true, get: function () { return index_22.Increment; } });
74
- var index_23 = require("./type/indexed/index");
75
- Object.defineProperty(exports, "Index", { enumerable: true, get: function () { return index_23.Index; } });
76
- Object.defineProperty(exports, "IndexPropertyKeys", { enumerable: true, get: function () { return index_23.IndexPropertyKeys; } });
77
- Object.defineProperty(exports, "IndexFromMappedKey", { enumerable: true, get: function () { return index_23.IndexFromMappedKey; } });
78
- var index_24 = require("./type/instance-type/index");
79
- Object.defineProperty(exports, "InstanceType", { enumerable: true, get: function () { return index_24.InstanceType; } });
80
- var index_25 = require("./type/integer/index");
81
- Object.defineProperty(exports, "Integer", { enumerable: true, get: function () { return index_25.Integer; } });
82
- var index_26 = require("./type/intersect/index");
83
- Object.defineProperty(exports, "Intersect", { enumerable: true, get: function () { return index_26.Intersect; } });
84
- Object.defineProperty(exports, "IntersectEvaluated", { enumerable: true, get: function () { return index_26.IntersectEvaluated; } });
85
- var index_27 = require("./type/iterator/index");
86
- Object.defineProperty(exports, "Iterator", { enumerable: true, get: function () { return index_27.Iterator; } });
87
- var index_28 = require("./type/intrinsic/index");
88
- Object.defineProperty(exports, "Intrinsic", { enumerable: true, get: function () { return index_28.Intrinsic; } });
89
- Object.defineProperty(exports, "IntrinsicFromMappedKey", { enumerable: true, get: function () { return index_28.IntrinsicFromMappedKey; } });
90
- Object.defineProperty(exports, "Capitalize", { enumerable: true, get: function () { return index_28.Capitalize; } });
91
- Object.defineProperty(exports, "Lowercase", { enumerable: true, get: function () { return index_28.Lowercase; } });
92
- Object.defineProperty(exports, "Uncapitalize", { enumerable: true, get: function () { return index_28.Uncapitalize; } });
93
- Object.defineProperty(exports, "Uppercase", { enumerable: true, get: function () { return index_28.Uppercase; } });
94
- var index_29 = require("./type/keyof/index");
95
- Object.defineProperty(exports, "KeyOf", { enumerable: true, get: function () { return index_29.KeyOf; } });
96
- Object.defineProperty(exports, "KeyOfPropertyKeys", { enumerable: true, get: function () { return index_29.KeyOfPropertyKeys; } });
97
- Object.defineProperty(exports, "KeyOfPattern", { enumerable: true, get: function () { return index_29.KeyOfPattern; } });
98
- var index_30 = require("./type/literal/index");
99
- Object.defineProperty(exports, "Literal", { enumerable: true, get: function () { return index_30.Literal; } });
100
- var index_31 = require("./type/mapped/index");
101
- Object.defineProperty(exports, "Mapped", { enumerable: true, get: function () { return index_31.Mapped; } });
102
- Object.defineProperty(exports, "MappedKey", { enumerable: true, get: function () { return index_31.MappedKey; } });
103
- Object.defineProperty(exports, "MappedResult", { enumerable: true, get: function () { return index_31.MappedResult; } });
104
- var index_32 = require("./type/never/index");
105
- Object.defineProperty(exports, "Never", { enumerable: true, get: function () { return index_32.Never; } });
106
- var index_33 = require("./type/not/index");
107
- Object.defineProperty(exports, "Not", { enumerable: true, get: function () { return index_33.Not; } });
108
- var index_34 = require("./type/null/index");
109
- Object.defineProperty(exports, "Null", { enumerable: true, get: function () { return index_34.Null; } });
110
- var index_35 = require("./type/number/index");
111
- Object.defineProperty(exports, "Number", { enumerable: true, get: function () { return index_35.Number; } });
112
- var index_36 = require("./type/object/index");
113
- Object.defineProperty(exports, "Object", { enumerable: true, get: function () { return index_36.Object; } });
114
- var index_37 = require("./type/omit/index");
115
- Object.defineProperty(exports, "Omit", { enumerable: true, get: function () { return index_37.Omit; } });
116
- var index_38 = require("./type/optional/index");
117
- Object.defineProperty(exports, "Optional", { enumerable: true, get: function () { return index_38.Optional; } });
118
- Object.defineProperty(exports, "OptionalFromMappedResult", { enumerable: true, get: function () { return index_38.OptionalFromMappedResult; } });
119
- var index_39 = require("./type/parameters/index");
120
- Object.defineProperty(exports, "Parameters", { enumerable: true, get: function () { return index_39.Parameters; } });
121
- var index_40 = require("./type/partial/index");
122
- Object.defineProperty(exports, "Partial", { enumerable: true, get: function () { return index_40.Partial; } });
123
- Object.defineProperty(exports, "PartialFromMappedResult", { enumerable: true, get: function () { return index_40.PartialFromMappedResult; } });
124
- var index_41 = require("./type/pick/index");
125
- Object.defineProperty(exports, "Pick", { enumerable: true, get: function () { return index_41.Pick; } });
126
- var index_42 = require("./type/promise/index");
127
- Object.defineProperty(exports, "Promise", { enumerable: true, get: function () { return index_42.Promise; } });
128
- var index_43 = require("./type/readonly/index");
129
- Object.defineProperty(exports, "Readonly", { enumerable: true, get: function () { return index_43.Readonly; } });
130
- Object.defineProperty(exports, "ReadonlyFromMappedResult", { enumerable: true, get: function () { return index_43.ReadonlyFromMappedResult; } });
131
- var index_44 = require("./type/readonly-optional/index");
132
- Object.defineProperty(exports, "ReadonlyOptional", { enumerable: true, get: function () { return index_44.ReadonlyOptional; } });
133
- var index_45 = require("./type/record/index");
134
- Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return index_45.Record; } });
135
- var index_46 = require("./type/recursive/index");
136
- Object.defineProperty(exports, "Recursive", { enumerable: true, get: function () { return index_46.Recursive; } });
137
- var index_47 = require("./type/ref/index");
138
- Object.defineProperty(exports, "Ref", { enumerable: true, get: function () { return index_47.Ref; } });
139
- var index_48 = require("./type/regexp/index");
140
- Object.defineProperty(exports, "RegExp", { enumerable: true, get: function () { return index_48.RegExp; } });
141
- var index_49 = require("./type/required/index");
142
- Object.defineProperty(exports, "Required", { enumerable: true, get: function () { return index_49.Required; } });
143
- var index_50 = require("./type/rest/index");
144
- Object.defineProperty(exports, "Rest", { enumerable: true, get: function () { return index_50.Rest; } });
145
- var index_51 = require("./type/return-type/index");
146
- Object.defineProperty(exports, "ReturnType", { enumerable: true, get: function () { return index_51.ReturnType; } });
147
- var index_52 = require("./type/strict/index");
148
- Object.defineProperty(exports, "Strict", { enumerable: true, get: function () { return index_52.Strict; } });
149
- var index_53 = require("./type/string/index");
150
- Object.defineProperty(exports, "String", { enumerable: true, get: function () { return index_53.String; } });
151
- var index_54 = require("./type/symbol/index");
152
- Object.defineProperty(exports, "Symbol", { enumerable: true, get: function () { return index_54.Symbol; } });
153
- var index_55 = require("./type/template-literal/index");
154
- Object.defineProperty(exports, "TemplateLiteral", { enumerable: true, get: function () { return index_55.TemplateLiteral; } });
155
- Object.defineProperty(exports, "IsTemplateLiteralFinite", { enumerable: true, get: function () { return index_55.IsTemplateLiteralFinite; } });
156
- Object.defineProperty(exports, "IsTemplateLiteralExpressionFinite", { enumerable: true, get: function () { return index_55.IsTemplateLiteralExpressionFinite; } });
157
- Object.defineProperty(exports, "TemplateLiteralParse", { enumerable: true, get: function () { return index_55.TemplateLiteralParse; } });
158
- Object.defineProperty(exports, "TemplateLiteralParseExact", { enumerable: true, get: function () { return index_55.TemplateLiteralParseExact; } });
159
- Object.defineProperty(exports, "TemplateLiteralGenerate", { enumerable: true, get: function () { return index_55.TemplateLiteralGenerate; } });
160
- Object.defineProperty(exports, "TemplateLiteralExpressionGenerate", { enumerable: true, get: function () { return index_55.TemplateLiteralExpressionGenerate; } });
161
- var index_56 = require("./type/transform/index");
162
- Object.defineProperty(exports, "Transform", { enumerable: true, get: function () { return index_56.Transform; } });
163
- Object.defineProperty(exports, "TransformDecodeBuilder", { enumerable: true, get: function () { return index_56.TransformDecodeBuilder; } });
164
- Object.defineProperty(exports, "TransformEncodeBuilder", { enumerable: true, get: function () { return index_56.TransformEncodeBuilder; } });
165
- var index_57 = require("./type/tuple/index");
166
- Object.defineProperty(exports, "Tuple", { enumerable: true, get: function () { return index_57.Tuple; } });
167
- var index_58 = require("./type/uint8array/index");
168
- Object.defineProperty(exports, "Uint8Array", { enumerable: true, get: function () { return index_58.Uint8Array; } });
169
- var index_59 = require("./type/undefined/index");
170
- Object.defineProperty(exports, "Undefined", { enumerable: true, get: function () { return index_59.Undefined; } });
171
- var index_60 = require("./type/union/index");
172
- Object.defineProperty(exports, "Union", { enumerable: true, get: function () { return index_60.Union; } });
173
- Object.defineProperty(exports, "UnionEvaluated", { enumerable: true, get: function () { return index_60.UnionEvaluated; } });
174
- var index_61 = require("./type/unknown/index");
175
- Object.defineProperty(exports, "Unknown", { enumerable: true, get: function () { return index_61.Unknown; } });
176
- var index_62 = require("./type/unsafe/index");
177
- Object.defineProperty(exports, "Unsafe", { enumerable: true, get: function () { return index_62.Unsafe; } });
178
- var index_63 = require("./type/void/index");
179
- Object.defineProperty(exports, "Void", { enumerable: true, get: function () { return index_63.Void; } });
37
+ var index_6 = require("./type/any/index");
38
+ Object.defineProperty(exports, "Any", { enumerable: true, get: function () { return index_6.Any; } });
39
+ var index_7 = require("./type/array/index");
40
+ Object.defineProperty(exports, "Array", { enumerable: true, get: function () { return index_7.Array; } });
41
+ var index_8 = require("./type/async-iterator/index");
42
+ Object.defineProperty(exports, "AsyncIterator", { enumerable: true, get: function () { return index_8.AsyncIterator; } });
43
+ var index_9 = require("./type/awaited/index");
44
+ Object.defineProperty(exports, "Awaited", { enumerable: true, get: function () { return index_9.Awaited; } });
45
+ var index_10 = require("./type/bigint/index");
46
+ Object.defineProperty(exports, "BigInt", { enumerable: true, get: function () { return index_10.BigInt; } });
47
+ var index_11 = require("./type/boolean/index");
48
+ Object.defineProperty(exports, "Boolean", { enumerable: true, get: function () { return index_11.Boolean; } });
49
+ var index_12 = require("./type/composite/index");
50
+ Object.defineProperty(exports, "Composite", { enumerable: true, get: function () { return index_12.Composite; } });
51
+ var index_13 = require("./type/const/index");
52
+ Object.defineProperty(exports, "Const", { enumerable: true, get: function () { return index_13.Const; } });
53
+ var index_14 = require("./type/constructor/index");
54
+ Object.defineProperty(exports, "Constructor", { enumerable: true, get: function () { return index_14.Constructor; } });
55
+ var index_15 = require("./type/constructor-parameters/index");
56
+ Object.defineProperty(exports, "ConstructorParameters", { enumerable: true, get: function () { return index_15.ConstructorParameters; } });
57
+ var index_16 = require("./type/date/index");
58
+ Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return index_16.Date; } });
59
+ var index_17 = require("./type/deref/index");
60
+ Object.defineProperty(exports, "Deref", { enumerable: true, get: function () { return index_17.Deref; } });
61
+ var index_18 = require("./type/enum/index");
62
+ Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return index_18.Enum; } });
63
+ var index_19 = require("./type/exclude/index");
64
+ Object.defineProperty(exports, "Exclude", { enumerable: true, get: function () { return index_19.Exclude; } });
65
+ var index_20 = require("./type/extends/index");
66
+ Object.defineProperty(exports, "Extends", { enumerable: true, get: function () { return index_20.Extends; } });
67
+ Object.defineProperty(exports, "ExtendsCheck", { enumerable: true, get: function () { return index_20.ExtendsCheck; } });
68
+ Object.defineProperty(exports, "ExtendsResult", { enumerable: true, get: function () { return index_20.ExtendsResult; } });
69
+ Object.defineProperty(exports, "ExtendsUndefinedCheck", { enumerable: true, get: function () { return index_20.ExtendsUndefinedCheck; } });
70
+ var index_21 = require("./type/extract/index");
71
+ Object.defineProperty(exports, "Extract", { enumerable: true, get: function () { return index_21.Extract; } });
72
+ var index_22 = require("./type/function/index");
73
+ Object.defineProperty(exports, "Function", { enumerable: true, get: function () { return index_22.Function; } });
74
+ var index_23 = require("./type/helpers/index");
75
+ Object.defineProperty(exports, "Increment", { enumerable: true, get: function () { return index_23.Increment; } });
76
+ var index_24 = require("./type/indexed/index");
77
+ Object.defineProperty(exports, "Index", { enumerable: true, get: function () { return index_24.Index; } });
78
+ Object.defineProperty(exports, "IndexPropertyKeys", { enumerable: true, get: function () { return index_24.IndexPropertyKeys; } });
79
+ Object.defineProperty(exports, "IndexFromMappedKey", { enumerable: true, get: function () { return index_24.IndexFromMappedKey; } });
80
+ var index_25 = require("./type/instance-type/index");
81
+ Object.defineProperty(exports, "InstanceType", { enumerable: true, get: function () { return index_25.InstanceType; } });
82
+ var index_26 = require("./type/integer/index");
83
+ Object.defineProperty(exports, "Integer", { enumerable: true, get: function () { return index_26.Integer; } });
84
+ var index_27 = require("./type/intersect/index");
85
+ Object.defineProperty(exports, "Intersect", { enumerable: true, get: function () { return index_27.Intersect; } });
86
+ Object.defineProperty(exports, "IntersectEvaluated", { enumerable: true, get: function () { return index_27.IntersectEvaluated; } });
87
+ var index_28 = require("./type/iterator/index");
88
+ Object.defineProperty(exports, "Iterator", { enumerable: true, get: function () { return index_28.Iterator; } });
89
+ var index_29 = require("./type/intrinsic/index");
90
+ Object.defineProperty(exports, "Intrinsic", { enumerable: true, get: function () { return index_29.Intrinsic; } });
91
+ Object.defineProperty(exports, "IntrinsicFromMappedKey", { enumerable: true, get: function () { return index_29.IntrinsicFromMappedKey; } });
92
+ Object.defineProperty(exports, "Capitalize", { enumerable: true, get: function () { return index_29.Capitalize; } });
93
+ Object.defineProperty(exports, "Lowercase", { enumerable: true, get: function () { return index_29.Lowercase; } });
94
+ Object.defineProperty(exports, "Uncapitalize", { enumerable: true, get: function () { return index_29.Uncapitalize; } });
95
+ Object.defineProperty(exports, "Uppercase", { enumerable: true, get: function () { return index_29.Uppercase; } });
96
+ var index_30 = require("./type/keyof/index");
97
+ Object.defineProperty(exports, "KeyOf", { enumerable: true, get: function () { return index_30.KeyOf; } });
98
+ Object.defineProperty(exports, "KeyOfPropertyKeys", { enumerable: true, get: function () { return index_30.KeyOfPropertyKeys; } });
99
+ Object.defineProperty(exports, "KeyOfPattern", { enumerable: true, get: function () { return index_30.KeyOfPattern; } });
100
+ var index_31 = require("./type/literal/index");
101
+ Object.defineProperty(exports, "Literal", { enumerable: true, get: function () { return index_31.Literal; } });
102
+ var index_32 = require("./type/mapped/index");
103
+ Object.defineProperty(exports, "Mapped", { enumerable: true, get: function () { return index_32.Mapped; } });
104
+ Object.defineProperty(exports, "MappedKey", { enumerable: true, get: function () { return index_32.MappedKey; } });
105
+ Object.defineProperty(exports, "MappedResult", { enumerable: true, get: function () { return index_32.MappedResult; } });
106
+ var index_33 = require("./type/never/index");
107
+ Object.defineProperty(exports, "Never", { enumerable: true, get: function () { return index_33.Never; } });
108
+ var index_34 = require("./type/not/index");
109
+ Object.defineProperty(exports, "Not", { enumerable: true, get: function () { return index_34.Not; } });
110
+ var index_35 = require("./type/null/index");
111
+ Object.defineProperty(exports, "Null", { enumerable: true, get: function () { return index_35.Null; } });
112
+ var index_36 = require("./type/number/index");
113
+ Object.defineProperty(exports, "Number", { enumerable: true, get: function () { return index_36.Number; } });
114
+ var index_37 = require("./type/object/index");
115
+ Object.defineProperty(exports, "Object", { enumerable: true, get: function () { return index_37.Object; } });
116
+ var index_38 = require("./type/omit/index");
117
+ Object.defineProperty(exports, "Omit", { enumerable: true, get: function () { return index_38.Omit; } });
118
+ var index_39 = require("./type/optional/index");
119
+ Object.defineProperty(exports, "Optional", { enumerable: true, get: function () { return index_39.Optional; } });
120
+ Object.defineProperty(exports, "OptionalFromMappedResult", { enumerable: true, get: function () { return index_39.OptionalFromMappedResult; } });
121
+ var index_40 = require("./type/parameters/index");
122
+ Object.defineProperty(exports, "Parameters", { enumerable: true, get: function () { return index_40.Parameters; } });
123
+ var index_41 = require("./type/partial/index");
124
+ Object.defineProperty(exports, "Partial", { enumerable: true, get: function () { return index_41.Partial; } });
125
+ Object.defineProperty(exports, "PartialFromMappedResult", { enumerable: true, get: function () { return index_41.PartialFromMappedResult; } });
126
+ var index_42 = require("./type/pick/index");
127
+ Object.defineProperty(exports, "Pick", { enumerable: true, get: function () { return index_42.Pick; } });
128
+ var index_43 = require("./type/promise/index");
129
+ Object.defineProperty(exports, "Promise", { enumerable: true, get: function () { return index_43.Promise; } });
130
+ var index_44 = require("./type/readonly/index");
131
+ Object.defineProperty(exports, "Readonly", { enumerable: true, get: function () { return index_44.Readonly; } });
132
+ Object.defineProperty(exports, "ReadonlyFromMappedResult", { enumerable: true, get: function () { return index_44.ReadonlyFromMappedResult; } });
133
+ var index_45 = require("./type/readonly-optional/index");
134
+ Object.defineProperty(exports, "ReadonlyOptional", { enumerable: true, get: function () { return index_45.ReadonlyOptional; } });
135
+ var index_46 = require("./type/record/index");
136
+ Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return index_46.Record; } });
137
+ var index_47 = require("./type/recursive/index");
138
+ Object.defineProperty(exports, "Recursive", { enumerable: true, get: function () { return index_47.Recursive; } });
139
+ var index_48 = require("./type/ref/index");
140
+ Object.defineProperty(exports, "Ref", { enumerable: true, get: function () { return index_48.Ref; } });
141
+ var index_49 = require("./type/regexp/index");
142
+ Object.defineProperty(exports, "RegExp", { enumerable: true, get: function () { return index_49.RegExp; } });
143
+ var index_50 = require("./type/required/index");
144
+ Object.defineProperty(exports, "Required", { enumerable: true, get: function () { return index_50.Required; } });
145
+ var index_51 = require("./type/rest/index");
146
+ Object.defineProperty(exports, "Rest", { enumerable: true, get: function () { return index_51.Rest; } });
147
+ var index_52 = require("./type/return-type/index");
148
+ Object.defineProperty(exports, "ReturnType", { enumerable: true, get: function () { return index_52.ReturnType; } });
149
+ var index_53 = require("./type/strict/index");
150
+ Object.defineProperty(exports, "Strict", { enumerable: true, get: function () { return index_53.Strict; } });
151
+ var index_54 = require("./type/string/index");
152
+ Object.defineProperty(exports, "String", { enumerable: true, get: function () { return index_54.String; } });
153
+ var index_55 = require("./type/symbol/index");
154
+ Object.defineProperty(exports, "Symbol", { enumerable: true, get: function () { return index_55.Symbol; } });
155
+ var index_56 = require("./type/template-literal/index");
156
+ Object.defineProperty(exports, "TemplateLiteral", { enumerable: true, get: function () { return index_56.TemplateLiteral; } });
157
+ Object.defineProperty(exports, "IsTemplateLiteralFinite", { enumerable: true, get: function () { return index_56.IsTemplateLiteralFinite; } });
158
+ Object.defineProperty(exports, "IsTemplateLiteralExpressionFinite", { enumerable: true, get: function () { return index_56.IsTemplateLiteralExpressionFinite; } });
159
+ Object.defineProperty(exports, "TemplateLiteralParse", { enumerable: true, get: function () { return index_56.TemplateLiteralParse; } });
160
+ Object.defineProperty(exports, "TemplateLiteralParseExact", { enumerable: true, get: function () { return index_56.TemplateLiteralParseExact; } });
161
+ Object.defineProperty(exports, "TemplateLiteralGenerate", { enumerable: true, get: function () { return index_56.TemplateLiteralGenerate; } });
162
+ Object.defineProperty(exports, "TemplateLiteralExpressionGenerate", { enumerable: true, get: function () { return index_56.TemplateLiteralExpressionGenerate; } });
163
+ var index_57 = require("./type/transform/index");
164
+ Object.defineProperty(exports, "Transform", { enumerable: true, get: function () { return index_57.Transform; } });
165
+ Object.defineProperty(exports, "TransformDecodeBuilder", { enumerable: true, get: function () { return index_57.TransformDecodeBuilder; } });
166
+ Object.defineProperty(exports, "TransformEncodeBuilder", { enumerable: true, get: function () { return index_57.TransformEncodeBuilder; } });
167
+ var index_58 = require("./type/tuple/index");
168
+ Object.defineProperty(exports, "Tuple", { enumerable: true, get: function () { return index_58.Tuple; } });
169
+ var index_59 = require("./type/uint8array/index");
170
+ Object.defineProperty(exports, "Uint8Array", { enumerable: true, get: function () { return index_59.Uint8Array; } });
171
+ var index_60 = require("./type/undefined/index");
172
+ Object.defineProperty(exports, "Undefined", { enumerable: true, get: function () { return index_60.Undefined; } });
173
+ var index_61 = require("./type/union/index");
174
+ Object.defineProperty(exports, "Union", { enumerable: true, get: function () { return index_61.Union; } });
175
+ Object.defineProperty(exports, "UnionEvaluated", { enumerable: true, get: function () { return index_61.UnionEvaluated; } });
176
+ var index_62 = require("./type/unknown/index");
177
+ Object.defineProperty(exports, "Unknown", { enumerable: true, get: function () { return index_62.Unknown; } });
178
+ var index_63 = require("./type/unsafe/index");
179
+ Object.defineProperty(exports, "Unsafe", { enumerable: true, get: function () { return index_63.Unsafe; } });
180
+ var index_64 = require("./type/void/index");
181
+ Object.defineProperty(exports, "Void", { enumerable: true, get: function () { return index_64.Void; } });
180
182
  // ------------------------------------------------------------------
181
183
  // Namespace
182
184
  // ------------------------------------------------------------------
183
- var index_64 = require("./type/type/index");
184
- Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return index_64.Type; } });
185
- Object.defineProperty(exports, "JsonTypeBuilder", { enumerable: true, get: function () { return index_64.JsonTypeBuilder; } });
186
- Object.defineProperty(exports, "JavaScriptTypeBuilder", { enumerable: true, get: function () { return index_64.JavaScriptTypeBuilder; } });
185
+ var index_65 = require("./type/type/index");
186
+ Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return index_65.Type; } });
187
+ Object.defineProperty(exports, "JsonTypeBuilder", { enumerable: true, get: function () { return index_65.JsonTypeBuilder; } });
188
+ Object.defineProperty(exports, "JavaScriptTypeBuilder", { enumerable: true, get: function () { return index_65.JavaScriptTypeBuilder; } });
@@ -1,7 +1,8 @@
1
- export declare class TypeSystemDuplicateTypeKind extends Error {
1
+ import { TypeBoxError } from '../type/error/index';
2
+ export declare class TypeSystemDuplicateTypeKind extends TypeBoxError {
2
3
  constructor(kind: string);
3
4
  }
4
- export declare class TypeSystemDuplicateFormat extends Error {
5
+ export declare class TypeSystemDuplicateFormat extends TypeBoxError {
5
6
  constructor(kind: string);
6
7
  }
7
8
  /** Creates user defined types and formats and provides overrides for value checking behaviours */