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:
Félix Malfait
2025-08-08 01:27:05 +02:00
committed by GitHub
parent 525c8bfe3c
commit 8b4b9ef8da
2050 changed files with 5124 additions and 4912 deletions
@@ -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()