From c52aeb66184c9f17f6ba2df3c4b256ab31ecdd6e Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 29 Mar 2020 11:28:55 +0900 Subject: [PATCH] Fix type --- src/server/api/stream/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts index a5ff56f51d..2781d14bd9 100644 --- a/src/server/api/stream/index.ts +++ b/src/server/api/stream/index.ts @@ -18,7 +18,7 @@ export default class Connection { public user?: User; public following: User['id'][] = []; public muting: User['id'][] = []; - public token: AccessToken | null | undefined; + public token?: AccessToken; private wsConnection: websocket.connection; public subscriber: EventEmitter; private channels: Channel[] = [];