UNPKG

typebox-schema-faker

Version:

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

9 lines (8 loc) 245 B
import { rootFake } from '../root'; /** * Generates fake data for promise schemas */ export const fakePromise = (schema, ctx, options) => { const itemSchema = schema.item; return Promise.resolve(rootFake(itemSchema, ctx, options)); };