@sinclair/typebox 0.32.1 → 0.32.3
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/build/import/index.d.mts
CHANGED
|
@@ -29,7 +29,7 @@ export { Intersect, IntersectEvaluated, type TIntersect, type TIntersectEvaluate
|
|
|
29
29
|
export { Iterator, type TIterator } from './type/iterator/index.mjs';
|
|
30
30
|
export { Intrinsic, IntrinsicFromMappedKey, type TIntrinsic, Capitalize, type TCapitalize, Lowercase, type TLowercase, Uncapitalize, type TUncapitalize, Uppercase, type TUppercase } from './type/intrinsic/index.mjs';
|
|
31
31
|
export { KeyOf, type TKeyOf, type KeyOfFromMappedResult, KeyOfPropertyKeys, KeyOfPattern } from './type/keyof/index.mjs';
|
|
32
|
-
export { Literal, type TLiteral } from './type/literal/index.mjs';
|
|
32
|
+
export { Literal, type TLiteral, type TLiteralValue } from './type/literal/index.mjs';
|
|
33
33
|
export { Mapped, MappedKey, MappedResult, type TMapped, type TMappedKey, type TMappedResult, type TMappedFunction } from './type/mapped/index.mjs';
|
|
34
34
|
export { Never, type TNever } from './type/never/index.mjs';
|
|
35
35
|
export { Not, type TNot } from './type/not/index.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']>;
|
package/build/require/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { Intersect, IntersectEvaluated, type TIntersect, type TIntersectEvaluate
|
|
|
29
29
|
export { Iterator, type TIterator } from './type/iterator/index';
|
|
30
30
|
export { Intrinsic, IntrinsicFromMappedKey, type TIntrinsic, Capitalize, type TCapitalize, Lowercase, type TLowercase, Uncapitalize, type TUncapitalize, Uppercase, type TUppercase } from './type/intrinsic/index';
|
|
31
31
|
export { KeyOf, type TKeyOf, type KeyOfFromMappedResult, KeyOfPropertyKeys, KeyOfPattern } from './type/keyof/index';
|
|
32
|
-
export { Literal, type TLiteral } from './type/literal/index';
|
|
32
|
+
export { Literal, type TLiteral, type TLiteralValue } from './type/literal/index';
|
|
33
33
|
export { Mapped, MappedKey, MappedResult, type TMapped, type TMappedKey, type TMappedResult, type TMappedFunction } from './type/mapped/index';
|
|
34
34
|
export { Never, type TNever } from './type/never/index';
|
|
35
35
|
export { Not, type TNot } from './type/not/index';
|
|
@@ -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']>;
|