Skip to content

Commit b2700a4

Browse files
committed
fix: add typeRoots to tsconfig
1 parent 0d905bd commit b2700a4

File tree

9 files changed

+7
-6
lines changed

9 files changed

+7
-6
lines changed

app/controllers/auth.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TypedRequestBody } from '@/typings/typed-request'
1+
import type { TypedRequestBody } from '@/types/typed-request'
22
import type { NextFunction, Request, Response } from 'express'
33

44
import { prisma } from '@prisma'

app/controllers/board.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type {
22
TypedRequest,
33
TypedRequestBody,
44
TypedRequestParams
5-
} from '@/typings/typed-request'
5+
} from '@/types/typed-request'
66
import type { NextFunction, Request, Response } from 'express'
77

88
import { prisma } from '@prisma'

app/controllers/card.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TypedRequest, TypedRequestParams } from '@/typings/typed-request'
1+
import type { TypedRequest, TypedRequestParams } from '@/types/typed-request'
22
import type { NextFunction, Response } from 'express'
33

44
import { prisma } from '@prisma'

app/controllers/column.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TypedRequest, TypedRequestParams } from '@/typings/typed-request'
1+
import type { TypedRequest, TypedRequestParams } from '@/types/typed-request'
22
import type { NextFunction, Response } from 'express'
33

44
import { prisma } from '@prisma'

app/controllers/user.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TypedRequestBody } from '@/typings/typed-request'
1+
import type { TypedRequestBody } from '@/types/typed-request'
22
import type { NextFunction, Request, Response } from 'express'
33
import type { Options } from 'nodemailer/lib/mailer'
44

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"paths": {
1212
"@/*": ["./app/*"],
1313
"@prisma": ["./prisma/prisma.client.ts"]
14-
}
14+
},
15+
"typeRoots": ["./app/types", "./node_modules/@types"]
1516
},
1617
"include": ["./app/**/*"]
1718
}

0 commit comments

Comments
 (0)