Change type import rule (#13751)
Forcing "type" to be explicit, works best will rollup on the frontend to exclude depdendencies
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
|
||||
import { createParamDecorator, type ExecutionContext } from '@nestjs/common';
|
||||
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
import { type ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
import { type ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
ExecutionContext,
|
||||
type ExecutionContext,
|
||||
ForbiddenException,
|
||||
createParamDecorator,
|
||||
} from '@nestjs/common';
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
import { type ExecutionContext, createParamDecorator } from '@nestjs/common';
|
||||
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
ExecutionContext,
|
||||
type ExecutionContext,
|
||||
InternalServerErrorException,
|
||||
createParamDecorator,
|
||||
} from '@nestjs/common';
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
registerDecorator,
|
||||
ValidationOptions,
|
||||
ValidationArguments,
|
||||
type ValidationOptions,
|
||||
type ValidationArguments,
|
||||
} from 'class-validator';
|
||||
|
||||
export function IsValidMetadataName(validationOptions?: ValidationOptions) {
|
||||
|
||||
Reference in New Issue
Block a user