@sinclair/typebox 0.32.2 → 0.32.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.
@@ -1,2 +1,2 @@
1
1
  export { Errors, ValueError, ValueErrorIterator, ValueErrorType, ValueErrorsUnknownTypeError } from './errors.mjs';
2
- export { DefaultErrorFunction, GetErrorFunction, SetErrorFunction, type ErrorFunction } from './function.mjs';
2
+ export { DefaultErrorFunction, GetErrorFunction, SetErrorFunction, type ErrorFunction, type ErrorFunctionParameter } from './function.mjs';
@@ -35,7 +35,7 @@ type TFromRegExpKey<_ extends TRegExp, T extends TSchema> = (Ensure<TRecord<TReg
35
35
  type TFromStringKey<_ extends TString, T extends TSchema> = (Ensure<TRecord<TString, T>>);
36
36
  type TFromIntegerKey<_ extends TSchema, T extends TSchema> = (Ensure<TRecord<TNumber, T>>);
37
37
  type TFromNumberKey<_ extends TSchema, T extends TSchema> = (Ensure<TRecord<TNumber, T>>);
38
- type RecordStatic<K extends TSchema, T extends TSchema, P extends unknown[]> = (Record<Assert<Static<K>, PropertyKey>, Static<T, P>>);
38
+ type RecordStatic<K extends TSchema, T extends TSchema, P extends unknown[]> = (Evaluate<Record<Assert<Static<K>, PropertyKey>, Static<T, P>>>);
39
39
  export interface TRecord<K extends TSchema = TSchema, T extends TSchema = TSchema> extends TSchema {
40
40
  [Kind]: 'Record';
41
41
  static: RecordStatic<K, T, this['params']>;
@@ -1,2 +1,2 @@
1
1
  export { Errors, ValueError, ValueErrorIterator, ValueErrorType, ValueErrorsUnknownTypeError } from './errors';
2
- export { DefaultErrorFunction, GetErrorFunction, SetErrorFunction, type ErrorFunction } from './function';
2
+ export { DefaultErrorFunction, GetErrorFunction, SetErrorFunction, type ErrorFunction, type ErrorFunctionParameter } from './function';
@@ -35,7 +35,7 @@ type TFromRegExpKey<_ extends TRegExp, T extends TSchema> = (Ensure<TRecord<TReg
35
35
  type TFromStringKey<_ extends TString, T extends TSchema> = (Ensure<TRecord<TString, T>>);
36
36
  type TFromIntegerKey<_ extends TSchema, T extends TSchema> = (Ensure<TRecord<TNumber, T>>);
37
37
  type TFromNumberKey<_ extends TSchema, T extends TSchema> = (Ensure<TRecord<TNumber, T>>);
38
- type RecordStatic<K extends TSchema, T extends TSchema, P extends unknown[]> = (Record<Assert<Static<K>, PropertyKey>, Static<T, P>>);
38
+ type RecordStatic<K extends TSchema, T extends TSchema, P extends unknown[]> = (Evaluate<Record<Assert<Static<K>, PropertyKey>, Static<T, P>>>);
39
39
  export interface TRecord<K extends TSchema = TSchema, T extends TSchema = TSchema> extends TSchema {
40
40
  [Kind]: 'Record';
41
41
  static: RecordStatic<K, T, this['params']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.32.2",
3
+ "version": "0.32.4",
4
4
  "description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",