Merge pull request #11032 from Tony133/chore/mark-facing-apis-public-fastify-adapter

chore(fastify): mark facing apis public fastify
This commit is contained in:
Kamil Mysliwiec
2023-02-03 11:59:40 +01:00
committed by GitHub
4 changed files with 8 additions and 0 deletions

View File

@@ -93,6 +93,9 @@ type VersionedRoute<TRequest, TResponse> = ((
type FastifyRawRequest<TServer extends RawServerBase> =
RawRequestDefaultExpression<TServer> & { originalUrl?: string };
/**
* @publicApi
*/
export class FastifyAdapter<
TServer extends RawServerBase = RawServerDefault,
TRawRequest extends FastifyRawRequest<TServer> = FastifyRawRequest<TServer>,

View File

@@ -1,6 +1,7 @@
/**
* "fastify-static" interfaces
* @see https://github.com/fastify/fastify-static/blob/master/types/index.d.ts
* @publicApi
*/
import { Stats } from 'fs';

View File

@@ -1,6 +1,7 @@
/**
* "fastify/view" interfaces
* @see https://github.com/fastify/point-of-view/blob/master/types/index.d.ts
* @publicApi
*/
export interface FastifyViewOptions {
engine: {

View File

@@ -16,6 +16,9 @@ import {
import { FastifyStaticOptions, FastifyViewOptions } from './external';
import { NestFastifyBodyParserOptions } from './nest-fastify-body-parser-options.interface';
/**
* @publicApi
*/
export interface NestFastifyApplication extends INestApplication {
/**
* A wrapper function around native `fastify.register()` method.