UNPKG

@honohub/vite

Version:

Vite plugin for honohub

23 lines (22 loc) 693 B
import type { AnyDrizzleDB } from "drizzle-graphql"; import type { SanitizedHub } from "honohub"; export type TemplateGeneratorProps<Database extends AnyDrizzleDB<any>> = { basePath: string; build: BuildOptions; config: SanitizedHub<Database>; override?: string; }; /** * Represents the build options for the HonoHub admin panel. */ export type BuildOptions = { /** * The cache directory path. */ cache: string; /** * The output directory path. */ outDir: string; }; export declare function generateReactTemplates<Database extends AnyDrizzleDB<any>>({ config, build, basePath, override }: TemplateGeneratorProps<Database>): Promise<void>;