UNPKG

typebox-schema-faker

Version:

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

8 lines (7 loc) 344 B
import { type Static, type TSchema } from '@sinclair/typebox'; import type { FakerContext, FakerOptions } from './types'; /** * Root fake data generator * Routes schema types to their specific faker implementations */ export declare function rootFake<T extends TSchema>(schema: T, ctx: FakerContext, opts: Partial<FakerOptions>): Static<T>;