UNPKG

from-schema

Version:

Infer TypeScript types from JSON schemas

8 lines (6 loc) 248 B
import { MongoCollectionModel } from './MongoCollectionModel'; import { ObjectBsonSchema } from './bson'; export type MongoDatabaseModel<T extends Record<string, MongoCollectionModel<ObjectBsonSchema>>> = { type: 'database'; tables: T; };