UNPKG

from-schema

Version:

Infer TypeScript types from JSON schemas

11 lines (10 loc) 201 B
type Event = 'insert' | 'update' | 'delete'; export type PostgresTriggerModel = { readonly name?: string; readonly sql: string; } & ({ before: Event; } | { after: Event; }); export {};