Skip to content

Commit 0a77c27

Browse files
committed
refactor: remove unused Request type import from express
1 parent b2d673e commit 0a77c27

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

apps/api/src/auth/auth.controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AuthController } from './auth.controller';
88
import { AuthService, type OAuthProfile } from './auth.service';
99

1010
import type { RequestWithUser } from '../types/request.interface';
11-
import type { Response, Request } from 'express';
11+
import type { Response } from 'express';
1212

1313
describe('AuthController', () => {
1414
let controller: AuthController;

apps/api/src/auth/auth.controller.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ import type {
4141
SafeUser,
4242
} from './auth.service';
4343
import type { RequestWithUser } from '../types/request.interface';
44-
import type {
45-
CookieOptions,
46-
Request as ExpressRequest,
47-
Response as ExpressResponse,
48-
} from 'express';
44+
import type { CookieOptions, Response as ExpressResponse } from 'express';
4945

5046
// so we can use 'lax' for better security
5147
const getCookieOptions = (): CookieOptions => {

0 commit comments

Comments
 (0)