diff --git a/packages/nestjs/.eslintrc.json b/packages/nestjs/.eslintrc.json index 54ac39535..25a6e0445 100644 --- a/packages/nestjs/.eslintrc.json +++ b/packages/nestjs/.eslintrc.json @@ -1 +1,7 @@ -{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*"], "rules": {} } +{ + "extends": "../../.eslintrc.json", + "ignorePatterns": ["!**/*"], + "rules": { + "@typescript-eslint/no-explicit-any": 0 + } +} diff --git a/packages/nestjs/src/lib/interceptors/map.interceptor.ts b/packages/nestjs/src/lib/interceptors/map.interceptor.ts index 0ad59b68f..c7de77235 100644 --- a/packages/nestjs/src/lib/interceptors/map.interceptor.ts +++ b/packages/nestjs/src/lib/interceptors/map.interceptor.ts @@ -21,9 +21,9 @@ function createMapInterceptor( to: unknown, from: unknown, options?: { isArray?: boolean; mapperName?: string } -): new (...args) => NestInterceptor { +): new (...args: any[]) => NestInterceptor { const { isArray = false, mapperName, ...mapOptions } = options || {}; - const transformedMapOptions = isEmpty(mapOptions) ? null : mapOptions; + const transformedMapOptions = isEmpty(mapOptions) ? undefined : mapOptions; class MixinMapInterceptor implements NestInterceptor { constructor( diff --git a/packages/nestjs/src/lib/interceptors/memoize.util.ts b/packages/nestjs/src/lib/interceptors/memoize.util.ts index 52042be85..507205d57 100644 --- a/packages/nestjs/src/lib/interceptors/memoize.util.ts +++ b/packages/nestjs/src/lib/interceptors/memoize.util.ts @@ -2,8 +2,8 @@ const defaultKey = 'default'; // eslint-disable-next-line @typescript-eslint/ban-types export function memoize(fn: Function) { - const cache = {}; - return (...args) => { + const cache: any = {}; + return (...args: any[]) => { const n = args.reduce( (key, arg) =>