@sinclair/typebox
Advanced tools
Comparing version 0.9.10 to 0.9.11
{ | ||
"name": "@sinclair/typebox", | ||
"version": "0.9.10", | ||
"version": "0.9.11", | ||
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -276,4 +276,4 @@ export interface UserDefinedOptions { | ||
} & ArrayOptions; | ||
export declare type TEnum<T> = { | ||
enum: T[keyof T][]; | ||
export declare type TEnum<T extends string | number> = { | ||
enum: Array<T>; | ||
}; | ||
@@ -442,3 +442,3 @@ export declare type TNumber = { | ||
/** Creates an `Enum<T>` from an existing TypeScript enum definition. */ | ||
static Enum<T extends Record<string, string | number>>(item: T, options?: UserDefinedOptions): TEnum<T>; | ||
static Enum<T extends Record<string, string | number>>(item: T, options?: UserDefinedOptions): TEnum<T[keyof T]>; | ||
/** Creates a `string` type. */ | ||
@@ -445,0 +445,0 @@ static String(options?: StringOptions): TString; |
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
66351