From 287f59523967222b9fbdbc1d83cdd687c603bf2f Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 14 Jan 2022 01:33:42 +0900 Subject: Resolve #38 --- src/index.ts | 5 ++++- src/streaming.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 = any> extends EventEmitter { +export abstract class Connection = any> extends EventEmitter { public channel: string; protected stream: Stream; public abstract id: string; -- cgit v1.2.3-freya