apitally
Version:
Simple API monitoring & analytics for REST APIs built with Express, Fastify, Hono, Koa, and NestJS.
23 lines (20 loc) • 662 B
TypeScript
import { ApitallyConsumer, ApitallyConfig } from '../common/types.js';
import { FastifyError, FastifyPluginAsync } from 'fastify';
import '../common/logging.js';
import 'winston';
import '../common/requestLogger.js';
import 'buffer';
import 'http';
import '../common/tempGzipFile.js';
declare module "fastify" {
interface FastifyReply {
payload: any;
serverError?: FastifyError;
}
interface FastifyRequest {
apitallyConsumer?: ApitallyConsumer | string | null;
consumerIdentifier?: ApitallyConsumer | string | null;
}
}
declare const _default: FastifyPluginAsync<ApitallyConfig>;
export { _default as default };