UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

6 lines (5 loc) 461 B
import type { TSchema } from '../../type/schema/index'; /** `[Mutable]` Converts any type mismatched values to their target type if a reasonable conversion is possible. */ export declare function Convert(schema: TSchema, references: TSchema[], value: unknown): unknown; /** `[Mutable]` Converts any type mismatched values to their target type if a reasonable conversion is possible. */ export declare function Convert(schema: TSchema, value: unknown): unknown;