UNPKG

fastify-knex-ts

Version:

knex's fastify plugin,knexjs,knex,fastify plugin

11 lines (10 loc) 446 B
import { Knex } from 'knex'; import { FastifyInstance } from "fastify"; declare module 'fastify' { interface FastifyInstance { knex: Knex; } } export declare function fastifyKnex(fastify: FastifyInstance, options: Knex.Config | string, done: any): void; declare const _default: import("fastify").FastifyPluginCallback<string | Knex.Config<any>, http.Server, import("fastify").FastifyTypeProviderDefault>; export default _default;