Resolve #38
This commit is contained in:
parent
cbce1242b9
commit
287f595239
4 changed files with 150 additions and 6 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue