Fix type annotation

This commit is contained in:
syuilo 2018-04-01 18:20:17 +09:00
parent d960e52690
commit 40c9adfef5

View file

@ -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();
}