@sinclair/typebox
Advanced tools
Comparing version 0.31.24 to 0.31.25
{ | ||
"name": "@sinclair/typebox", | ||
"version": "0.31.24", | ||
"version": "0.31.25", | ||
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -107,3 +107,3 @@ export declare const Transform: unique symbol; | ||
} | ||
export type TAsyncIteratorResolve<T extends TSchema, P extends unknown[]> = Ensure<AsyncIterableIterator<Static<T, P>>>; | ||
export type TAsyncIteratorResolve<T extends TSchema, P extends unknown[]> = AsyncIterableIterator<Ensure<Static<T, P>>>; | ||
export interface TAsyncIterator<T extends TSchema = TSchema> extends TSchema { | ||
@@ -228,3 +228,3 @@ [Kind]: 'AsyncIterator'; | ||
} | ||
export type TIteratorResolve<T extends TSchema, P extends unknown[]> = Ensure<IterableIterator<Static<T, P>>>; | ||
export type TIteratorResolve<T extends TSchema, P extends unknown[]> = IterableIterator<Ensure<Static<T, P>>>; | ||
export interface TIterator<T extends TSchema = TSchema> extends TSchema { | ||
@@ -438,7 +438,7 @@ [Kind]: 'Iterator'; | ||
}[number] : T extends TTemplateLiteral ? `${Static<T>}` : T extends TLiteral<infer U> ? `${U}` : T extends TString ? `${string}` : T extends TNumber ? `${number}` : T extends TBigInt ? `${bigint}` : T extends TBoolean ? `${boolean}` : never; | ||
export type TTemplateLiteralUnion<T extends TTemplateLiteralKind[], Acc extends string = ''> = T extends [infer L, ...infer R] ? `${TTemplateLiteralConst<L, Acc>}${TTemplateLiteralUnion<Assert<R, TTemplateLiteralKind[]>, Acc>}` : Acc; | ||
export type TTemplateLiteralUnion<T extends TTemplateLiteralKind[], Acc extends string> = T extends [infer L, ...infer R] ? `${TTemplateLiteralConst<L, Acc>}${TTemplateLiteralUnion<Assert<R, TTemplateLiteralKind[]>, Acc>}` : Acc; | ||
export type TTemplateLiteralKeyRest<T extends TTemplateLiteral> = Assert<UnionToTuple<Static<T>>, TPropertyKey[]>; | ||
export interface TTemplateLiteral<T extends TTemplateLiteralKind[] = TTemplateLiteralKind[]> extends TSchema { | ||
[Kind]: 'TemplateLiteral'; | ||
static: TTemplateLiteralUnion<T>; | ||
static: TTemplateLiteralUnion<T, ''>; | ||
type: 'string'; | ||
@@ -445,0 +445,0 @@ pattern: string; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
537805