UNPKG

typebox-schema-faker

Version:

Generate fake data from TypeBox schemas for testing, prototyping and development.

6 lines (5 loc) 233 B
import { type TSchema } from '@sinclair/typebox'; /** * Function to cast schemas with unknown Kind to known using `schema.type` or `schema[Hint]` */ export declare function castSchema<T extends TSchema>(schema: T): TSchema | null;