UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

28 lines 1.13 kB
import type { RuruProps } from "ruru-types"; import type { RuruConfig, RuruHTMLParts } from "./interfaces.ts"; export type { RuruClientConfig, RuruConfig, RuruHTMLParts, } from "./interfaces.ts"; export interface RuruServerConfig extends RuruConfig { /** @deprecated Use clientConfig.editorTheme instead */ editorTheme?: RuruProps["editorTheme"]; /** @deprecated Use clientConfig.debugTools instead */ debugTools?: RuruProps["debugTools"]; /** @deprecated Use clientConfig.eventSourceInit instead */ eventSourceInit?: RuruProps["eventSourceInit"]; } export declare function makeHTMLParts(config: RuruServerConfig): RuruHTMLParts; /** * Generate the HTML file to serve Ruru. * * @param config - Configuration */ export declare function ruruHTML(config: RuruServerConfig): string; /** @deprecated Only pass the `config` parameter */ export declare function ruruHTML(config: RuruServerConfig, deprecatedHTMLParts: Partial<RuruHTMLParts>): string; declare global { namespace GraphileConfig { interface Preset { ruru?: RuruConfig; } } } //# sourceMappingURL=server.d.ts.map