UNPKG

kolenkainc-honohub

Version:

The CMS for building apps and APIs with Hono

7 lines (6 loc) 633 B
import type { AnyDrizzleDB } from "drizzle-graphql"; import type { Table } from "drizzle-orm"; import { type Env, type Schema } from "hono"; import type { BlankSchema } from "hono/types"; import type { SanitizedCollection, SanitizedHub } from "../types"; export declare function createRoutes<Database extends AnyDrizzleDB<any>, U extends Table, E extends Env = Env, P extends Schema = BlankSchema, I extends string = string>(config: SanitizedHub<Database>, collection: SanitizedCollection<U>): import("hono/hono-base").HonoBase<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, P, I>;