diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-14 01:33:42 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-14 01:33:42 +0900 |
| commit | 287f59523967222b9fbdbc1d83cdd687c603bf2f (patch) | |
| tree | c95e43d4e1f8410593ab060a2aef2331cf13e30e /src | |
| parent | 0.0.12 (diff) | |
| download | misskey-287f59523967222b9fbdbc1d83cdd687c603bf2f.tar.gz misskey-287f59523967222b9fbdbc1d83cdd687c603bf2f.tar.bz2 misskey-287f59523967222b9fbdbc1d83cdd687c603bf2f.zip | |
Resolve #38
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 5 | ||||
| -rw-r--r-- | src/streaming.ts | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts index 60748ebe0b..f431d65cc7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,14 @@ import { Endpoints } from './api.types'; -import Stream from './streaming'; +import Stream, { Connection } from './streaming'; +import { Channels } from './streaming.types'; import { Acct } from './acct'; import * as consts from './consts'; export { Endpoints, Stream, + Connection as ChannelConnection, + Channels, Acct, }; diff --git a/src/streaming.ts b/src/streaming.ts index 0f41bddd40..c354a758f4 100644 --- a/src/streaming.ts +++ b/src/streaming.ts @@ -256,7 +256,7 @@ class Pool { } } -abstract class Connection<Channel extends AnyOf<Channels> = any> extends EventEmitter<Channel['events']> { +export abstract class Connection<Channel extends AnyOf<Channels> = any> extends EventEmitter<Channel['events']> { public channel: string; protected stream: Stream; public abstract id: string; |