resolve #17
This commit is contained in:
parent
ca655c0628
commit
6ae5f76250
4 changed files with 30 additions and 27 deletions
|
|
@ -4,7 +4,7 @@ import * as Misskey from '../src';
|
|||
describe('Streaming', () => {
|
||||
test('emit type', async () => {
|
||||
const stream = new Misskey.Stream('https://misskey.test', { token: 'TOKEN' });
|
||||
const mainChannel = stream.useSharedConnection('main');
|
||||
const mainChannel = stream.useChannel('main');
|
||||
mainChannel.on('notification', notification => {
|
||||
expectType<Misskey.entities.Notification>(notification);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue