From 6a9fd7dd603194f3a82a88e384d6b176986af163 Mon Sep 17 00:00:00 2001 From: osamu <46447427+sam-osamu@users.noreply.github.com> Date: Sat, 25 Nov 2023 21:14:15 +0900 Subject: [PATCH] =?UTF-8?q?messaging=E3=81=AF=E5=BB=83=E6=AD=A2=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=A6=E3=81=84=E3=82=8B=EF=BC=88=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=81=AE=E3=83=93=E3=83=AB=E3=83=89=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E8=A7=A3=E6=B6=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/misskey-js/test-d/streaming.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/misskey-js/test-d/streaming.ts b/packages/misskey-js/test-d/streaming.ts index 853f376e6c..6b186bd45a 100644 --- a/packages/misskey-js/test-d/streaming.ts +++ b/packages/misskey-js/test-d/streaming.ts @@ -9,18 +9,4 @@ describe('Streaming', () => { expectType(notification); }); }); - - test('params type', async () => { - const stream = new Misskey.Stream('https://misskey.test', { token: 'TOKEN' }); - // TODO: 「stream.useChannel の第二引数として受け入れる型が - // { - // otherparty?: User['id'] | null; - // group?: UserGroup['id'] | null; - // } - // になっている」というテストを行いたいけどtsdでの書き方がわからない - const messagingChannel = stream.useChannel('messaging', { otherparty: 'aaa' }); - messagingChannel.on('message', message => { - expectType(message); - }); - }); });