UNPKG

@lokalise/fastify-extras

Version:

Opinionated set of fastify plugins, commonly used in Lokalise

10 lines (9 loc) 511 B
import type { NodeConfig } from '@bugsnag/node'; import { type ErrorReport, type Severity, addFeatureFlag, bugsnagErrorReporter, reportErrorToBugsnag } from '@lokalise/error-utils'; import type { FastifyPluginCallback } from 'fastify'; export { reportErrorToBugsnag, addFeatureFlag, bugsnagErrorReporter, type ErrorReport, type Severity, }; export interface BugsnagPluginConfig { bugsnag: NodeConfig; isEnabled: boolean; } export declare const bugsnagPlugin: FastifyPluginCallback<BugsnagPluginConfig>;