UNPKG

@nestjs/swagger

Version:

OpenAPI for NestJS: generate the API document from controllers and decorators, serve Swagger UI, and derive request types with mapped types.

8 lines (7 loc) • 270 B
import { Type } from '@nestjs/common'; export declare function DeepPartialType<T>(classRef: Type<T>, options?: { skipNullProperties?: boolean; }): Type<DeepPartial<T>>; export type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T;