UNPKG

base-nestjs-app

Version:

Nestjs wrapper for creation of standarized apps

5 lines (4 loc) 440 B
import { FastifyRequest } from 'fastify'; import { ContentTypeParserDoneFunction } from 'fastify/types/content-type-parser'; import { ParseOptions } from 'secure-json-parse'; export declare function permissiveJsonParserFactory(onProtoPoisoning: ParseOptions['protoAction'], onConstructorPoisoning: ParseOptions['constructorAction']): (_: FastifyRequest, body: string | Buffer<ArrayBufferLike>, done: ContentTypeParserDoneFunction) => void;