blob: 6b186bd45af9bcab432e407d4755ff1db499f050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { expectType } from 'tsd';
import * as Misskey from '../src';
describe('Streaming', () => {
test('emit type', async () => {
const stream = new Misskey.Stream('https://misskey.test', { token: 'TOKEN' });
const mainChannel = stream.useChannel('main');
mainChannel.on('notification', notification => {
expectType<Misskey.entities.Notification>(notification);
});
});
});
|