Skip to content
Snippets Groups Projects
Commit 9a90d8a7 authored by syuilo's avatar syuilo
Browse files

Fix type annotation

parent 2e8e5f68
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ app.disable('x-powered-by');
app.get('/@:user/:post', async (req, res, next) => {
const accepted = req.accepts(['html', 'application/activity+json', 'application/ld+json']);
if (!(['application/activity+json', 'application/ld+json'] as Array<any>).includes(accepted)) {
if (!(['application/activity+json', 'application/ld+json'] as any[]).includes(accepted)) {
return next();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment