UNPKG

@aurios/jason

Version:

A simple, lightweight, and embeddable JSON document database built on Bun.

15 lines (12 loc) 458 B
import type { Collection, CollectionEffect } from "./collection.js"; export interface DatabaseEffect<Collections extends Record<string, any>> { readonly collections: { [K in keyof Collections]: CollectionEffect<Collections[K]>; }; } export interface Database<Collections extends Record<string, any>> { readonly collections: { [K in keyof Collections]: Collection<Collections[K]>; }; readonly [Symbol.asyncDispose]: () => Promise<void>; }