Skip to content

Commit 95dc7e4

Browse files
committed
🚀 add tsconfig
1 parent f2665ab commit 95dc7e4

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const server = http.createServer(app);
77

88
app
99
.get('/',
10-
(_, res) => {
10+
(req, res) => {
1111
res.send('Hello ts-node!');
1212
}
1313
);

tsconfig.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "commonjs",
5+
"lib": [
6+
"dom",
7+
"esnext"
8+
],
9+
"allowJs": true,
10+
"strict": true,
11+
"noImplicitAny": false,
12+
"types": [],
13+
"esModuleInterop": true
14+
}
15+
}

0 commit comments

Comments
 (0)