UNPKG

trifid-plugin-spex

Version:
14 lines 619 B
import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'; import type { ConfigRecord, RenderFunction, TrifidPlugin } from 'trifid-core'; /** * Create Plugin. * * @param server Fastify server instance. * @param config Plugin configuration. * @param render Trifid render function. */ declare const createPlugin: (server: FastifyInstance, config: ConfigRecord, render: RenderFunction) => Promise<(request: FastifyRequest, reply: FastifyReply) => Promise<never>>; declare const trifidFactory: TrifidPlugin; export default trifidFactory; export { createPlugin }; //# sourceMappingURL=index.d.ts.map