@sinclair/typebox 0.31.3 → 0.31.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.31.3",
3
+ "version": "0.31.4",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",
package/system/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export { ValueErrorType } from '../errors/errors';
1
2
  export * from './system';
package/system/index.js CHANGED
@@ -41,4 +41,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
41
41
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
+ exports.ValueErrorType = void 0;
45
+ var errors_1 = require("../errors/errors");
46
+ Object.defineProperty(exports, "ValueErrorType", { enumerable: true, get: function () { return errors_1.ValueErrorType; } });
44
47
  __exportStar(require("./system"), exports);
package/typebox.d.ts CHANGED
@@ -800,7 +800,7 @@ export declare class JsonTypeBuilder extends TypeBuilder {
800
800
  /** `[Json]` Creates a Composite object type */
801
801
  Composite<T extends TObject[]>(objects: [...T], options?: ObjectOptions): TComposite<T>;
802
802
  /** `[Json]` Creates a Enum type */
803
- Enum<T extends Record<string, string | number>>(item: T, options?: SchemaOptions): TEnum<T>;
803
+ Enum<V extends string | number, T extends Record<string, V>>(item: T, options?: SchemaOptions): TEnum<T>;
804
804
  /** `[Json]` Creates a Conditional type */
805
805
  Extends<L extends TSchema, R extends TSchema, T extends TSchema, U extends TSchema>(left: L, right: R, trueType: T, falseType: U, options?: SchemaOptions): TExtends<L, R, T, U>;
806
806
  /** `[Json]` Constructs a type by excluding from unionType all union members that are assignable to excludedMembers */