@datazod/zod-sql
Version:
Convert Zod schemas to SQL table definitions with support for SQLite, PostgreSQL, and MySQL
7 lines • 359 B
TypeScript
import type { ZodObject, ZodRawShape } from 'zod';
import type { TableOptions } from '../types';
/**
* Creates a flattened schema JSON representation for type inference
*/
export declare function createFlattenedSchemaJson<T extends ZodRawShape>(schema: ZodObject<T>, options?: TableOptions): Record<string, any>;
//# sourceMappingURL=json-generator.d.ts.map