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,11 +1,15 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { JwtService, JwtSignOptions, JwtVerifyOptions } from '@nestjs/jwt';
|
||||
import {
|
||||
JwtService,
|
||||
type JwtSignOptions,
|
||||
type JwtVerifyOptions,
|
||||
} from '@nestjs/jwt';
|
||||
|
||||
import { createHash } from 'crypto';
|
||||
|
||||
import { Request as ExpressRequest } from 'express';
|
||||
import { type Request as ExpressRequest } from 'express';
|
||||
import * as jwt from 'jsonwebtoken';
|
||||
import { ExtractJwt, JwtFromRequestFunction } from 'passport-jwt';
|
||||
import { ExtractJwt, type JwtFromRequestFunction } from 'passport-jwt';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
import {
|
||||
@@ -14,13 +18,13 @@ import {
|
||||
} from 'src/engine/core-modules/auth/auth.exception';
|
||||
import { TwentyConfigService } from 'src/engine/core-modules/twenty-config/twenty-config.service';
|
||||
import {
|
||||
JwtPayload,
|
||||
type JwtPayload,
|
||||
JwtTokenTypeEnum,
|
||||
TransientTokenJwtPayload,
|
||||
RefreshTokenJwtPayload,
|
||||
WorkspaceAgnosticTokenJwtPayload,
|
||||
AccessTokenJwtPayload,
|
||||
FileTokenJwtPayload,
|
||||
type TransientTokenJwtPayload,
|
||||
type RefreshTokenJwtPayload,
|
||||
type WorkspaceAgnosticTokenJwtPayload,
|
||||
type AccessTokenJwtPayload,
|
||||
type FileTokenJwtPayload,
|
||||
} from 'src/engine/core-modules/auth/types/auth-context.type';
|
||||
|
||||
@Injectable()
|
||||
|
||||
Reference in New Issue
Block a user