UNPKG

from-schema

Version:

Infer TypeScript types from JSON schemas

9 lines (7 loc) 305 B
import { PostgresRecordModel } from './PostgresRecordModel'; import { PostgresTableModel } from './PostgresTableModel'; export type PostgresDatabaseModel<T extends Record<string, PostgresTableModel<PostgresRecordModel>>> = { type: 'database'; tables: T; triggers?: Record<string, string>; };