We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents efa9e96 + cfde561 commit a67a6cbCopy full SHA for a67a6cb
src/types/express/index.d.ts
@@ -0,0 +1,14 @@
1
+import 'express';
2
+
3
+declare global {
4
+ namespace Express {
5
+ interface User {
6
+ id: string;
7
+ email?: string;
8
+ username?: string;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ deletedAt?: Date;
12
+ }
13
14
+}
tsconfig.json
@@ -17,8 +17,10 @@
17
"noImplicitAny": false,
18
"strictBindCallApply": false,
19
"noFallthroughCasesInSwitch": false,
20
+ "typeRoots": ["./node_modules/@types", "./src/types"],
21
"paths": {
22
"omniboxd/*": ["src/*"]
- }
23
+ },
24
25
+ "include": ["src/**/*", "src/types/**/*"]
26
}
0 commit comments