UNPKG

altair-fastify-plugin

Version:

Fastify Plugin of Altair GraphQL Client

24 lines 763 B
import { RenderOptions } from 'altair-static'; import type { FastifyInstance } from 'fastify'; export interface AltairFastifyPluginOptions extends RenderOptions { /** * URL to set as the server endpoint. * * By default is `/graphql` */ endpointURL?: string; /** * URL to be used as a base for relative URLs and hosting needed static files. * * By default is `/altair/` */ baseURL?: string; /** * Path in which Altair will be accesible. * * By default is `/altair` */ path?: string; } export declare const AltairFastify: (fastify: FastifyInstance, { path, baseURL, endpointURL, ...renderOptions }?: AltairFastifyPluginOptions) => Promise<void>; //# sourceMappingURL=index.d.ts.map