Binge of (mostly) mindless tsification (#6838)

Turned on `noImplicitAny` in tsconfig, then went around fixing some
random easy stuff.
Hopefully tsification-PRs with more real content coming up.
This commit is contained in:
Ofek
2024-09-07 14:36:43 +03:00
committed by GitHub
parent 78e075f197
commit 9ef46fbafe
98 changed files with 336 additions and 189 deletions

4
app.ts
View File

@@ -700,11 +700,11 @@ async function main() {
return options;
}
function isMobileViewer(req) {
function isMobileViewer(req: express.Request) {
return req.header('CloudFront-Is-Mobile-Viewer') === 'true';
}
function renderGoldenLayout(config, metadata, req, res) {
function renderGoldenLayout(config, metadata, req: express.Request, res: express.Response) {
staticHeaders(res);
contentPolicyHeader(res);