UNPKG

from-schema

Version:

Infer TypeScript types from JSON schemas

7 lines (5 loc) 294 B
import { FromPostgresColumnModel } from './PostgresColumnModel'; import { PostgresRecordModel } from './PostgresRecordModel'; export type FromPostgresPropertySchemas<T extends PostgresRecordModel> = { -readonly [K in keyof T['properties']]: FromPostgresColumnModel<T['properties'][K]>; };