From d84337f53030ae5619edd7634abc8891b2ce9a1d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 28 Jan 2022 17:31:25 -0500 Subject: [PATCH] Fix lint. --- src/server/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/index.tsx b/src/server/index.tsx index 14b3325..8114ee5 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -1,4 +1,4 @@ -import express from "express"; +import express, { RequestHandler } from "express"; import { StaticRouter } from "inferno-router"; import { renderToString } from "inferno-server"; // import { matchPath } from "inferno-router"; @@ -12,8 +12,8 @@ import { i18n } from "../shared/i18next"; const server = express(); const port = 1234; -server.use(express.json()); -server.use(express.urlencoded({ extended: false })); +server.use(express.json() as RequestHandler); +server.use(express.urlencoded({ extended: false }) as RequestHandler); server.use("/static", express.static(path.resolve("./dist"))); server.use("/docs", express.static(path.resolve("./dist/assets/docs"))); server.use("/api", express.static(path.resolve("./dist/assets/api")));