@sinclair/typebox
Advanced tools
Comparing version 0.32.17 to 0.32.18
@@ -0,1 +1,2 @@ | ||
import { type TUnsafe } from '../type/unsafe/index'; | ||
import { TypeBoxError } from '../type/error/index'; | ||
@@ -8,8 +9,9 @@ export declare class TypeSystemDuplicateTypeKind extends TypeBoxError { | ||
} | ||
export type TypeFactoryFunction<Type, Options = Record<PropertyKey, unknown>> = (options?: Partial<Options>) => TUnsafe<Type>; | ||
/** Creates user defined types and formats and provides overrides for value checking behaviours */ | ||
export declare namespace TypeSystem { | ||
/** Creates a new type */ | ||
function Type<Type, Options = Record<PropertyKey, unknown>>(kind: string, check: (options: Options, value: unknown) => boolean): (options?: Partial<Options>) => import("src/type/unsafe/unsafe").TUnsafe<Type>; | ||
function Type<Type, Options = Record<PropertyKey, unknown>>(kind: string, check: (options: Options, value: unknown) => boolean): TypeFactoryFunction<Type, Options>; | ||
/** Creates a new string format */ | ||
function Format<F extends string>(format: F, check: (value: string) => boolean): F; | ||
} |
@@ -24,5 +24,2 @@ "use strict"; | ||
exports.TypeSystemDuplicateFormat = TypeSystemDuplicateFormat; | ||
// ------------------------------------------------------------------ | ||
// TypeSystem | ||
// ------------------------------------------------------------------ | ||
/** Creates user defined types and formats and provides overrides for value checking behaviours */ | ||
@@ -29,0 +26,0 @@ var TypeSystem; |
{ | ||
"name": "@sinclair/typebox", | ||
"version": "0.32.17", | ||
"version": "0.32.18", | ||
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1342575
22652