UNPKG

@verdaccio/server-fastify

Version:

fastify server api implementation

18 lines (17 loc) 884 B
import { API_ERROR, API_MESSAGE, HTTP_STATUS, constants, errorUtils, pluginUtils, searchUtils, streamUtils, validationUtils, warningUtils } from '@verdaccio/core'; declare const _default: import("fastify").FastifyPluginAsync<import("fastify").FastifyPluginOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault, import("fastify").FastifyBaseLogger>; export default _default; declare module 'fastify' { interface FastifyInstance { apiError: typeof API_ERROR; apiMessage: typeof API_MESSAGE; statusCode: typeof HTTP_STATUS; errorUtils: typeof errorUtils; warningUtils: typeof warningUtils; searchUtils: typeof searchUtils; streamUtils: typeof streamUtils; pluginUtils: typeof pluginUtils; validationUtils: typeof validationUtils; constants: typeof constants; } }