repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interfaces/files-upload-module.interface.ts
packages/platform-express/multer/interfaces/files-upload-module.interface.ts
import { ModuleMetadata, Type } from '@nestjs/common/interfaces'; import { MulterOptions } from './multer-options.interface'; export type MulterModuleOptions = MulterOptions; /** * @publicApi */ export interface MulterOptionsFactory { createMulterOptions(): Promise<MulterModuleOptions> | MulterModuleOptions; } /...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interfaces/index.ts
packages/platform-express/multer/interfaces/index.ts
export * from './files-upload-module.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/multer/multer.utils.ts
packages/platform-express/multer/multer/multer.utils.ts
import { BadRequestException, HttpException, PayloadTooLargeException, } from '@nestjs/common'; import { multerExceptions, busboyExceptions } from './multer.constants'; // Multer may add in a 'field' property to the error // https://github.com/expressjs/multer/blob/aa42bea6ac7d0cb8fcb279b15a7278cda805dc63/lib/mu...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/multer/multer.constants.ts
packages/platform-express/multer/multer/multer.constants.ts
export const multerExceptions = { // from https://github.com/expressjs/multer/blob/master/lib/multer-error.js LIMIT_PART_COUNT: 'Too many parts', LIMIT_FILE_SIZE: 'File too large', LIMIT_FILE_COUNT: 'Too many files', LIMIT_FIELD_KEY: 'Field name too long', LIMIT_FIELD_VALUE: 'Field value too long', LIMIT_...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interceptors/files.interceptor.ts
packages/platform-express/multer/interceptors/files.interceptor.ts
import { CallHandler, ExecutionContext, Inject, mixin, NestInterceptor, Optional, Type, } from '@nestjs/common'; import * as multer from 'multer'; import { Observable } from 'rxjs'; import { MULTER_MODULE_OPTIONS } from '../files.constants'; import { MulterModuleOptions } from '../interfaces'; import { Mu...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interceptors/file-fields.interceptor.ts
packages/platform-express/multer/interceptors/file-fields.interceptor.ts
import { CallHandler, ExecutionContext, Inject, mixin, NestInterceptor, Optional, Type, } from '@nestjs/common'; import * as multer from 'multer'; import { Observable } from 'rxjs'; import { MULTER_MODULE_OPTIONS } from '../files.constants'; import { MulterModuleOptions } from '../interfaces'; import { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interceptors/file.interceptor.ts
packages/platform-express/multer/interceptors/file.interceptor.ts
import { CallHandler, ExecutionContext, Inject, mixin, NestInterceptor, Optional, Type, } from '@nestjs/common'; import * as multer from 'multer'; import { Observable } from 'rxjs'; import { MULTER_MODULE_OPTIONS } from '../files.constants'; import { MulterModuleOptions } from '../interfaces'; import { Mu...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interceptors/no-files.interceptor.ts
packages/platform-express/multer/interceptors/no-files.interceptor.ts
import { CallHandler, ExecutionContext, Inject, mixin, NestInterceptor, Optional, Type, } from '@nestjs/common'; import * as multer from 'multer'; import { Observable } from 'rxjs'; import { MULTER_MODULE_OPTIONS } from '../files.constants'; import { MulterModuleOptions } from '../interfaces'; import { Mu...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interceptors/any-files.interceptor.ts
packages/platform-express/multer/interceptors/any-files.interceptor.ts
import { CallHandler, ExecutionContext, Inject, mixin, NestInterceptor, Optional, Type, } from '@nestjs/common'; import * as multer from 'multer'; import { Observable } from 'rxjs'; import { MULTER_MODULE_OPTIONS } from '../files.constants'; import { MulterModuleOptions } from '../interfaces'; import { Mu...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-express/multer/interceptors/index.ts
packages/platform-express/multer/interceptors/index.ts
export * from './any-files.interceptor'; export * from './file-fields.interceptor'; export * from './file.interceptor'; export * from './files.interceptor'; export * from './no-files.interceptor';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-ws/index.ts
packages/platform-ws/index.ts
/* * Nest @platform-ws * Copyright(c) 2017 - 2025 Kamil Mysliwiec * https://nestjs.com * MIT Licensed */ export * from './adapters';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-ws/adapters/ws-adapter.ts
packages/platform-ws/adapters/ws-adapter.ts
import { INestApplicationContext, Logger } from '@nestjs/common'; import { loadPackage } from '@nestjs/common/utils/load-package.util'; import { isNil, normalizePath } from '@nestjs/common/utils/shared.utils'; import { AbstractWsAdapter } from '@nestjs/websockets'; import { CLOSE_EVENT, CONNECTION_EVENT, ERROR_EV...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-ws/adapters/index.ts
packages/platform-ws/adapters/index.ts
export * from './ws-adapter';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/constants.ts
packages/platform-fastify/constants.ts
export const FASTIFY_ROUTE_CONFIG_METADATA = '__fastify_route_config__'; export const FASTIFY_ROUTE_CONSTRAINTS_METADATA = '__fastify_route_constraints__'; export const FASTIFY_ROUTE_SCHEMA_METADATA = '__fastify_route_schema__';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/index.ts
packages/platform-fastify/index.ts
/* * Nest @platform-fastify * Copyright(c) 2017 - 2025 Kamil Mysliwiec * https://nestjs.com * MIT Licensed */ export * from './adapters'; export * from './interfaces'; export * from './decorators';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/decorators/route-config.decorator.ts
packages/platform-fastify/decorators/route-config.decorator.ts
import { SetMetadata } from '@nestjs/common'; import { FASTIFY_ROUTE_CONFIG_METADATA } from '../constants'; /** * @publicApi * * @param config See {@link https://fastify.dev/docs/latest/Reference/Routes/#config} */ export const RouteConfig = (config: any) => SetMetadata(FASTIFY_ROUTE_CONFIG_METADATA, config);
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/decorators/index.ts
packages/platform-fastify/decorators/index.ts
export * from './route-config.decorator'; export * from './route-constraints.decorator'; export * from './route-schema.decorator';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/decorators/route-constraints.decorator.ts
packages/platform-fastify/decorators/route-constraints.decorator.ts
import { SetMetadata } from '@nestjs/common'; import { FASTIFY_ROUTE_CONSTRAINTS_METADATA } from '../constants'; import { RouteShorthandOptions } from 'fastify'; /** * @publicApi * * @param config See {@link https://fastify.dev/docs/latest/Reference/Routes/#constraints} */ export const RouteConstraints = ( confi...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/decorators/route-schema.decorator.ts
packages/platform-fastify/decorators/route-schema.decorator.ts
import { SetMetadata } from '@nestjs/common'; import { FASTIFY_ROUTE_SCHEMA_METADATA } from '../constants'; import { FastifySchema } from 'fastify'; /** * @publicApi * Allows setting the schema for the route. Schema is an object that can contain the following properties: * - body: JsonSchema * - querystring or que...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/interfaces/nest-fastify-application.interface.ts
packages/platform-fastify/interfaces/nest-fastify-application.interface.ts
import { FastifyCorsOptions } from '@fastify/cors'; import { HttpServer, INestApplication } from '@nestjs/common'; import { FastifyBodyParser, FastifyInstance, FastifyListenOptions, FastifyPluginAsync, FastifyPluginCallback, FastifyPluginOptions, FastifyRegisterOptions, FastifyReply, FastifyRequest, ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/interfaces/index.ts
packages/platform-fastify/interfaces/index.ts
export * from './nest-fastify-application.interface'; export * from './nest-fastify-body-parser-options.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/interfaces/nest-fastify-body-parser-options.interface.ts
packages/platform-fastify/interfaces/nest-fastify-body-parser-options.interface.ts
import type { AddContentTypeParser } from 'fastify'; export type NestFastifyBodyParserOptions = Omit< Parameters<AddContentTypeParser>[1], 'parseAs' >;
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/interfaces/external/fastify-view-options.interface.ts
packages/platform-fastify/interfaces/external/fastify-view-options.interface.ts
/** * "fastify/view" interfaces * @see https://github.com/fastify/point-of-view/blob/master/types/index.d.ts * @publicApi */ export interface FastifyViewOptions { engine: { ejs?: any; eta?: any; nunjucks?: any; pug?: any; handlebars?: any; mustache?: any; 'art-template'?: any; twig...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/interfaces/external/fastify-static-options.interface.ts
packages/platform-fastify/interfaces/external/fastify-static-options.interface.ts
/** * "fastify-static" interfaces * @see https://github.com/fastify/fastify-static/blob/master/types/index.d.ts * @publicApi */ import { RouteOptions, FastifyRequest, FastifyReply } from 'fastify'; import { Stats } from 'fs'; interface SetHeadersResponse { getHeader: FastifyReply['getHeader']; setHeader: Fasti...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/interfaces/external/index.ts
packages/platform-fastify/interfaces/external/index.ts
export * from './fastify-static-options.interface'; export * from './fastify-view-options.interface';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/test/decorators/router-config.decorator.spec.ts
packages/platform-fastify/test/decorators/router-config.decorator.spec.ts
import { expect } from 'chai'; import { FASTIFY_ROUTE_CONFIG_METADATA } from '../../constants'; import { RouteConfig } from '../../decorators/route-config.decorator'; describe('@RouteConfig', () => { const routeConfig = { testKey: 'testValue' }; class Test { config; @RouteConfig(routeConfig) public sta...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/test/decorators/router-constraints.decorator.spec.ts
packages/platform-fastify/test/decorators/router-constraints.decorator.spec.ts
import { expect } from 'chai'; import { FASTIFY_ROUTE_CONSTRAINTS_METADATA } from '../../constants'; import { RouteConstraints } from '../../decorators/route-constraints.decorator'; describe('@RouteConstraints', () => { describe('has version constraints', () => { const routeConstraints = { version: '1.2.x' }; ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/test/decorators/router-schema.decorator.spec.ts
packages/platform-fastify/test/decorators/router-schema.decorator.spec.ts
import { expect } from 'chai'; import { FASTIFY_ROUTE_SCHEMA_METADATA } from '../../constants'; import { RouteSchema } from '../../decorators/route-schema.decorator'; describe('@RouteSchema', () => { const routeSchema = { body: 'testValue' }; class Test { config; @RouteSchema(routeSchema) public static...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/adapters/fastify-adapter.ts
packages/platform-fastify/adapters/fastify-adapter.ts
/* eslint-disable @typescript-eslint/no-floating-promises */ import { FastifyCorsOptions } from '@fastify/cors'; import { HttpStatus, Logger, RawBodyRequest, RequestMethod, StreamableFile, VERSION_NEUTRAL, VersioningOptions, VersioningType, } from '@nestjs/common'; import { VersionValue } from '@nestjs/...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/adapters/index.ts
packages/platform-fastify/adapters/index.ts
export * from './fastify-adapter';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/platform-fastify/adapters/middie/fastify-middie.ts
packages/platform-fastify/adapters/middie/fastify-middie.ts
/* eslint-disable @typescript-eslint/no-this-alias */ /* eslint-disable @typescript-eslint/no-namespace */ import { FastifyInstance, FastifyPluginCallback, FastifyReply, FastifyRequest, HookHandlerDoneFunction, } from 'fastify'; import fp from 'fastify-plugin'; import { safeDecodeURI } from 'find-my-way/lib/u...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/constants.ts
packages/common/constants.ts
export const MODULE_METADATA = { IMPORTS: 'imports', PROVIDERS: 'providers', CONTROLLERS: 'controllers', EXPORTS: 'exports', }; export const GLOBAL_MODULE_METADATA = '__module:global__'; export const HOST_METADATA = 'host'; export const PATH_METADATA = 'path'; export const PARAMTYPES_METADATA = 'design:paramty...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/index.ts
packages/common/index.ts
/* * Nest @common * Copyright(c) 2017 - 2025 Kamil Mysliwiec * https://nestjs.com * MIT Licensed */ import 'reflect-metadata'; export * from './decorators'; export * from './enums'; export * from './exceptions'; export * from './file-stream'; export { Abstract, ArgumentMetadata, ArgumentsHost, BeforeAppli...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/index.ts
packages/common/decorators/index.ts
export * from './core'; export * from './modules'; export * from './http';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/modules/global.decorator.ts
packages/common/decorators/modules/global.decorator.ts
import { GLOBAL_MODULE_METADATA } from '../../constants'; /** * Decorator that makes a module global-scoped. * * Once imported into any module, a global-scoped module will be visible * in all modules. Thereafter, modules that wish to inject a service exported * from a global module do not need to import the provi...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/modules/module.decorator.ts
packages/common/decorators/modules/module.decorator.ts
import { ModuleMetadata } from '../../interfaces/modules/module-metadata.interface'; import { validateModuleKeys } from '../../utils/validate-module-keys.util'; /** * Decorator that marks a class as a [module](https://docs.nestjs.com/modules). * * Modules are used by Nest to organize the application structure into ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/modules/index.ts
packages/common/decorators/modules/index.ts
export * from './global.decorator'; export * from './module.decorator';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/injectable.decorator.ts
packages/common/decorators/core/injectable.decorator.ts
import { uid } from 'uid'; import { INJECTABLE_WATERMARK, SCOPE_OPTIONS_METADATA } from '../../constants'; import { ScopeOptions } from '../../interfaces/scope-options.interface'; import { Type } from '../../interfaces/type.interface'; /** * Defines the injection scope. * * @see [Injection Scopes](https://docs.nest...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/bind.decorator.ts
packages/common/decorators/core/bind.decorator.ts
/** * Decorator that binds *parameter decorators* to the method that follows. * * Useful when the language doesn't provide a 'Parameter Decorator' feature * (i.e., vanilla JavaScript). * * @param decorators one or more parameter decorators (e.g., `Req()`) * * @publicApi */ export function Bind(...decorators: a...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/use-pipes.decorator.ts
packages/common/decorators/core/use-pipes.decorator.ts
import { PIPES_METADATA } from '../../constants'; import { PipeTransform } from '../../interfaces/index'; import { extendArrayMetadata } from '../../utils/extend-metadata.util'; import { isFunction } from '../../utils/shared.utils'; import { validateEach } from '../../utils/validate-each.util'; /** * Decorator that b...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/controller.decorator.ts
packages/common/decorators/core/controller.decorator.ts
import { CONTROLLER_WATERMARK, HOST_METADATA, PATH_METADATA, SCOPE_OPTIONS_METADATA, VERSION_METADATA, } from '../../constants'; import { ScopeOptions, VersionOptions } from '../../interfaces'; import { isString, isUndefined } from '../../utils/shared.utils'; /** * Interface defining options that can be pas...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/use-interceptors.decorator.ts
packages/common/decorators/core/use-interceptors.decorator.ts
import { INTERCEPTORS_METADATA } from '../../constants'; import { NestInterceptor } from '../../interfaces'; import { extendArrayMetadata } from '../../utils/extend-metadata.util'; import { isFunction } from '../../utils/shared.utils'; import { validateEach } from '../../utils/validate-each.util'; /** * Decorator tha...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/exception-filters.decorator.ts
packages/common/decorators/core/exception-filters.decorator.ts
import { EXCEPTION_FILTERS_METADATA } from '../../constants'; import { ExceptionFilter } from '../../index'; import { extendArrayMetadata } from '../../utils/extend-metadata.util'; import { isFunction } from '../../utils/shared.utils'; import { validateEach } from '../../utils/validate-each.util'; /** * Decorator tha...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/apply-decorators.ts
packages/common/decorators/core/apply-decorators.ts
/** * Function that returns a new decorator that applies all decorators provided by param * * Useful to build new decorators (or a decorator factory) encapsulating multiple decorators related with the same feature * * @param decorators one or more decorators (e.g., `ApplyGuard(...)`) * * @publicApi */ export fu...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/inject.decorator.ts
packages/common/decorators/core/inject.decorator.ts
import { PARAMTYPES_METADATA, PROPERTY_DEPS_METADATA, SELF_DECLARED_DEPS_METADATA, } from '../../constants'; import { ForwardReference, InjectionToken } from '../../interfaces'; import { isUndefined } from '../../utils/shared.utils'; /** * Decorator that marks a constructor parameter as a target for * [Depende...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/optional.decorator.ts
packages/common/decorators/core/optional.decorator.ts
import { OPTIONAL_DEPS_METADATA, OPTIONAL_PROPERTY_DEPS_METADATA, } from '../../constants'; import { isUndefined } from '../../utils/shared.utils'; /** * Parameter decorator for an injected dependency marking the * dependency as optional. * * For example: * ```typescript * constructor(@Optional() @Inject('HT...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/use-guards.decorator.ts
packages/common/decorators/core/use-guards.decorator.ts
import { GUARDS_METADATA } from '../../constants'; import { CanActivate } from '../../interfaces'; import { extendArrayMetadata } from '../../utils/extend-metadata.util'; import { isFunction } from '../../utils/shared.utils'; import { validateEach } from '../../utils/validate-each.util'; /** * Decorator that binds gu...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/version.decorator.ts
packages/common/decorators/core/version.decorator.ts
import { VERSION_METADATA } from '../../constants'; import { VersionValue } from '../../interfaces/version-options.interface'; /** * Sets the version of the endpoint to the passed version * * @publicApi */ export function Version(version: VersionValue): MethodDecorator { if (Array.isArray(version)) { // Drop...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/catch.decorator.ts
packages/common/decorators/core/catch.decorator.ts
import { CATCH_WATERMARK, FILTER_CATCH_EXCEPTIONS } from '../../constants'; import { Type, Abstract } from '../../interfaces'; /** * Decorator that marks a class as a Nest exception filter. An exception filter * handles exceptions thrown by or not handled by your application code. * * The decorated class must impl...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/dependencies.decorator.ts
packages/common/decorators/core/dependencies.decorator.ts
import { PARAMTYPES_METADATA } from '../../constants'; export function flatten<T extends Array<unknown> = any>( arr: T, ): T extends Array<infer R> ? R : never { const flat = ([] as any[]).concat(...arr); return flat.some(Array.isArray) ? flatten(flat) : (flat as T extends Array<infer R> ? R : never); } ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/set-metadata.decorator.ts
packages/common/decorators/core/set-metadata.decorator.ts
export type CustomDecorator<TKey = string> = MethodDecorator & ClassDecorator & { KEY: TKey; }; /** * Decorator that assigns metadata to the class/function using the * specified `key`. * * Requires two parameters: * - `key` - a value defining the key under which the metadata is stored * - `value` - metad...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/core/index.ts
packages/common/decorators/core/index.ts
export * from './bind.decorator'; export * from './catch.decorator'; export * from './controller.decorator'; export * from './dependencies.decorator'; export * from './exception-filters.decorator'; export * from './inject.decorator'; export * from './injectable.decorator'; export * from './optional.decorator'; export *...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/header.decorator.ts
packages/common/decorators/http/header.decorator.ts
import { HEADERS_METADATA } from '../../constants'; import { extendArrayMetadata } from '../../utils/extend-metadata.util'; /** * Request method Decorator. Sets a response header. * * For example: * `@Header('Cache-Control', 'none')` * `@Header('Cache-Control', () => 'none')` * * @param name string to be used ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/http-code.decorator.ts
packages/common/decorators/http/http-code.decorator.ts
import { HTTP_CODE_METADATA } from '../../constants'; /** * Request method Decorator. Defines the HTTP response status code. Overrides * default status code for the decorated request method. * * @param statusCode HTTP response code to be returned by route handler. * * @see [Http Status Codes](https://docs.nest...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/render.decorator.ts
packages/common/decorators/http/render.decorator.ts
import { RENDER_METADATA } from '../../constants'; /** * Route handler method Decorator. Defines a template to be rendered by the controller. * * For example: `@Render('index')` * * @param template name of the render engine template file * * @see [Model-View-Controller](https://docs.nestjs.com/techniques/mvc) ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/redirect.decorator.ts
packages/common/decorators/http/redirect.decorator.ts
import { REDIRECT_METADATA } from '../../constants'; /** * Redirects request to the specified URL. * * @publicApi */ export function Redirect(url = '', statusCode?: number): MethodDecorator { return ( target: object, key: string | symbol, descriptor: TypedPropertyDescriptor<any>, ) => { Reflect...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/sse.decorator.ts
packages/common/decorators/http/sse.decorator.ts
import { METHOD_METADATA, PATH_METADATA, SSE_METADATA } from '../../constants'; import { RequestMethod } from '../../enums/request-method.enum'; /** * Declares this route as a Server-Sent-Events endpoint * * @publicApi */ export function Sse( path?: string, options: { [METHOD_METADATA]?: RequestMethod } = { ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/request-mapping.decorator.ts
packages/common/decorators/http/request-mapping.decorator.ts
import { METHOD_METADATA, PATH_METADATA } from '../../constants'; import { RequestMethod } from '../../enums/request-method.enum'; export interface RequestMappingMetadata { path?: string | string[]; method?: RequestMethod; } const defaultMetadata = { [PATH_METADATA]: '/', [METHOD_METADATA]: RequestMethod.GET,...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/route-params.decorator.ts
packages/common/decorators/http/route-params.decorator.ts
import { RESPONSE_PASSTHROUGH_METADATA, ROUTE_ARGS_METADATA, } from '../../constants'; import { RouteParamtypes } from '../../enums/route-paramtypes.enum'; import { PipeTransform } from '../../index'; import { Type } from '../../interfaces'; import { isNil, isString } from '../../utils/shared.utils'; /** * The `@...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/index.ts
packages/common/decorators/http/index.ts
export * from './request-mapping.decorator'; export * from './route-params.decorator'; export * from './http-code.decorator'; export * from './create-route-param-metadata.decorator'; export * from './render.decorator'; export * from './header.decorator'; export * from './redirect.decorator'; export * from './sse.decora...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/decorators/http/create-route-param-metadata.decorator.ts
packages/common/decorators/http/create-route-param-metadata.decorator.ts
import { uid } from 'uid'; import { ROUTE_ARGS_METADATA } from '../../constants'; import { PipeTransform } from '../../index'; import { Type } from '../../interfaces'; import { CustomParamFactory } from '../../interfaces/features/custom-route-param-factory.interface'; import { assignCustomParameterMetadata } from '../....
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/services/logger.service.ts
packages/common/services/logger.service.ts
import { Injectable, Optional } from '../decorators/core'; import { isObject } from '../utils/shared.utils'; import { ConsoleLogger } from './console-logger.service'; import { isLogLevelEnabled } from './utils'; export const LOG_LEVELS = [ 'verbose', 'debug', 'log', 'warn', 'error', 'fatal', ] as const sat...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/services/console-logger.service.ts
packages/common/services/console-logger.service.ts
import { inspect, InspectOptions } from 'util'; import { Injectable, Optional } from '../decorators/core'; import { clc, yellow, isColorAllowed } from '../utils/cli-colors.util'; import { isFunction, isPlainObject, isString, isUndefined, } from '../utils/shared.utils'; import { LoggerService, LogLevel } from '....
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/services/index.ts
packages/common/services/index.ts
export * from './console-logger.service'; export * from './logger.service'; export * from './utils/filter-log-levels.util';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/services/utils/filter-log-levels.util.ts
packages/common/services/utils/filter-log-levels.util.ts
import { LOG_LEVELS, LogLevel } from '../logger.service'; import { isLogLevel } from './is-log-level.util'; /** * @publicApi */ export function filterLogLevels(parseableString = ''): LogLevel[] { const sanitizedString = parseableString.replaceAll(' ', '').toLowerCase(); if (sanitizedString[0] === '>') { con...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/services/utils/is-log-level-enabled.util.ts
packages/common/services/utils/is-log-level-enabled.util.ts
import { LogLevel } from '../logger.service'; const LOG_LEVEL_VALUES: Record<LogLevel, number> = { verbose: 0, debug: 1, log: 2, warn: 3, error: 4, fatal: 5, }; /** * Checks if target level is enabled. * @param targetLevel target level * @param logLevels array of enabled log levels */ export function ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/services/utils/is-log-level.util.ts
packages/common/services/utils/is-log-level.util.ts
import { LOG_LEVELS, LogLevel } from '../logger.service'; /** * @publicApi */ export function isLogLevel(maybeLogLevel: any): maybeLogLevel is LogLevel { return LOG_LEVELS.includes(maybeLogLevel); }
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/services/utils/index.ts
packages/common/services/utils/index.ts
export * from './filter-log-levels.util'; export * from './is-log-level-enabled.util'; export * from './is-log-level.util';
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/not-acceptable.exception.ts
packages/common/exceptions/not-acceptable.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Not Acceptable* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/unauthorized.exception.ts
packages/common/exceptions/unauthorized.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Unauthorized* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/request-timeout.exception.ts
packages/common/exceptions/request-timeout.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Request Timeout* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/bad-request.exception.ts
packages/common/exceptions/bad-request.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Bad Request* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */ ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/bad-gateway.exception.ts
packages/common/exceptions/bad-gateway.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Bad Gateway* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */ ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/http-version-not-supported.exception.ts
packages/common/exceptions/http-version-not-supported.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Http Version Not Supported* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/unprocessable-entity.exception.ts
packages/common/exceptions/unprocessable-entity.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Unprocessable Entity* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publi...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/not-found.exception.ts
packages/common/exceptions/not-found.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Not Found* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */ ex...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/gone.exception.ts
packages/common/exceptions/gone.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Gone* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */ export ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/forbidden.exception.ts
packages/common/exceptions/forbidden.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Forbidden* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */ ex...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/conflict.exception.ts
packages/common/exceptions/conflict.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Conflict* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */ exp...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/gateway-timeout.exception.ts
packages/common/exceptions/gateway-timeout.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Gateway Timeout* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/unsupported-media-type.exception.ts
packages/common/exceptions/unsupported-media-type.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Unsupported Media Type* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @pub...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/http.exception.ts
packages/common/exceptions/http.exception.ts
import { HttpExceptionBody, HttpExceptionBodyMessage, } from '../interfaces/http/http-exception-body.interface'; import { isNumber, isObject, isString } from '../utils/shared.utils'; import { IntrinsicException } from './intrinsic.exception'; export interface HttpExceptionOptions { /** original cause of the erro...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/precondition-failed.exception.ts
packages/common/exceptions/precondition-failed.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Precondition Failed* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @public...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/internal-server-error.exception.ts
packages/common/exceptions/internal-server-error.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Internal Server Error* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/im-a-teapot.exception.ts
packages/common/exceptions/im-a-teapot.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *ImATeapotException* type errors. * * Any attempt to brew coffee with a teapot should result in the error code * "418 I'm a teapot". The resulting enti...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/not-implemented.exception.ts
packages/common/exceptions/not-implemented.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Not Implemented* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/index.ts
packages/common/exceptions/index.ts
export * from './bad-gateway.exception'; export * from './bad-request.exception'; export * from './conflict.exception'; export * from './forbidden.exception'; export * from './gateway-timeout.exception'; export * from './gone.exception'; export * from './http-version-not-supported.exception'; export * from './http.exce...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/misdirected.exception.ts
packages/common/exceptions/misdirected.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Misdirected* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicApi */ ...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/intrinsic.exception.ts
packages/common/exceptions/intrinsic.exception.ts
/** * Exception that represents an intrinsic error in the application. * When thrown, the default exception filter will not log the error message. * * @publicApi */ export class IntrinsicException extends Error {}
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/method-not-allowed.exception.ts
packages/common/exceptions/method-not-allowed.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Method Not Allowed* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicA...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/service-unavailable.exception.ts
packages/common/exceptions/service-unavailable.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Service Unavailable* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @public...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/exceptions/payload-too-large.exception.ts
packages/common/exceptions/payload-too-large.exception.ts
import { HttpStatus } from '../enums/http-status.enum'; import { HttpException, HttpExceptionOptions } from './http.exception'; /** * Defines an HTTP exception for *Payload Too Large* type errors. * * @see [Built-in HTTP exceptions](https://docs.nestjs.com/exception-filters#built-in-http-exceptions) * * @publicAp...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/parse-float.pipe.ts
packages/common/pipes/parse-float.pipe.ts
import { Injectable, Optional } from '../decorators/core'; import { ArgumentMetadata, HttpStatus } from '../index'; import { PipeTransform } from '../interfaces/features/pipe-transform.interface'; import { ErrorHttpStatusCode, HttpErrorByCode, } from '../utils/http-error-by-code.util'; import { isNil } from '../uti...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/default-value.pipe.ts
packages/common/pipes/default-value.pipe.ts
import { Injectable } from '../decorators/core/injectable.decorator'; import { ArgumentMetadata, PipeTransform, } from '../interfaces/features/pipe-transform.interface'; import { isNil, isNumber } from '../utils/shared.utils'; /** * Defines the built-in DefaultValue Pipe * * @see [Built-in Pipes](https://docs.n...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/validation.pipe.ts
packages/common/pipes/validation.pipe.ts
import { iterate } from 'iterare'; import { types } from 'util'; import { Optional } from '../decorators'; import { Injectable } from '../decorators/core'; import { HttpStatus } from '../enums/http-status.enum'; import { ClassTransformOptions } from '../interfaces/external/class-transform-options.interface'; import { T...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/parse-date.pipe.ts
packages/common/pipes/parse-date.pipe.ts
import { Injectable } from '../decorators/core/injectable.decorator'; import { HttpStatus } from '../enums/http-status.enum'; import { PipeTransform } from '../interfaces/features/pipe-transform.interface'; import { ErrorHttpStatusCode, HttpErrorByCode, } from '../utils/http-error-by-code.util'; import { isNil } fr...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/parse-int.pipe.ts
packages/common/pipes/parse-int.pipe.ts
import { Injectable } from '../decorators/core/injectable.decorator'; import { Optional } from '../decorators/core/optional.decorator'; import { HttpStatus } from '../enums/http-status.enum'; import { ArgumentMetadata, PipeTransform, } from '../interfaces/features/pipe-transform.interface'; import { ErrorHttpStat...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/parse-bool.pipe.ts
packages/common/pipes/parse-bool.pipe.ts
import { Injectable } from '../decorators/core/injectable.decorator'; import { Optional } from '../decorators/core/optional.decorator'; import { HttpStatus } from '../enums/http-status.enum'; import { ArgumentMetadata, PipeTransform, } from '../interfaces/features/pipe-transform.interface'; import { ErrorHttpStat...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/parse-array.pipe.ts
packages/common/pipes/parse-array.pipe.ts
import { Injectable } from '../decorators/core/injectable.decorator'; import { Optional } from '../decorators/core/optional.decorator'; import { HttpStatus } from '../enums/http-status.enum'; import { Type } from '../interfaces'; import { ArgumentMetadata, PipeTransform, } from '../interfaces/features/pipe-transfor...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false
nestjs/nest
https://github.com/nestjs/nest/blob/4500f04525c4cdde6bf98507d3d21fa9ef68082b/packages/common/pipes/index.ts
packages/common/pipes/index.ts
export * from './default-value.pipe'; export * from './file'; export * from './parse-array.pipe'; export * from './parse-bool.pipe'; export * from './parse-date.pipe'; export * from './parse-enum.pipe'; export * from './parse-float.pipe'; export * from './parse-int.pipe'; export * from './parse-uuid.pipe'; export * fro...
typescript
MIT
4500f04525c4cdde6bf98507d3d21fa9ef68082b
2026-01-04T15:26:03.786460Z
false