Skip to content

Commit e6ddfc8

Browse files
authored
express: change serve-static to v2 (DefinitelyTyped#74136)
1 parent 916db2d commit e6ddfc8

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

types/express/express-tests.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ namespace express_tests {
88
app.engine("jade", require("jade").__express);
99
app.engine("html", require("ejs").renderFile);
1010

11-
express.static.mime.define({
12-
"application/fx": ["fx"],
13-
});
1411
app.use(
1512
"/static",
1613
express.static(__dirname + "/public", {

types/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dependencies": {
99
"@types/body-parser": "*",
1010
"@types/express-serve-static-core": "^5.0.0",
11-
"@types/serve-static": "^1"
11+
"@types/serve-static": "^2"
1212
},
1313
"devDependencies": {
1414
"@types/express": "workspace:.",

0 commit comments

Comments
 (0)