@travetto/rest-fastify
Version:
Fastify provider for the travetto rest module.
13 lines (11 loc) • 315 B
TypeScript
import { TravettoEntitySymbol } from '@travetto/rest/src/internal/symbol';
import * as rest from '@travetto/rest';
// Support typings
declare module 'fastify' {
interface FastifyRequest {
[TravettoEntitySymbol]?: rest.Request;
}
interface FastifyReply {
[TravettoEntitySymbol]?: rest.Response;
}
}