mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
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:
4
app.ts
4
app.ts
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user