import type { DB } from "bknd"; import type { Insertable, Selectable, Updateable, Generated } from "kysely"; declare global { type BkndEntity = Selectable; type BkndEntityCreate = Insertable; type BkndEntityUpdate = Updateable; } export interface Todos { id: Generated; title?: string; done?: boolean; } interface Database { todos: Todos; } declare module "bknd" { interface DB extends Database {} }