fix(core): update
This commit is contained in:
15
ts/index.ts
15
ts/index.ts
@ -76,6 +76,21 @@ export interface ITag {
|
||||
|
||||
export type implementsTag<T, U extends T> = {};
|
||||
|
||||
|
||||
// stream stuff
|
||||
export interface IVirtualStream<T = ArrayBufferLike> {
|
||||
// Properties
|
||||
side: 'requesting' | 'responding';
|
||||
streamId: string;
|
||||
|
||||
// Methods
|
||||
handleStreamTr(streamTrArg: IStreamRequest): Promise<IStreamRequest>;
|
||||
cleanup(): Promise<void>;
|
||||
sendData(dataArg: T): Promise<void>;
|
||||
fetchData(): Promise<T>;
|
||||
pipeWebStream(webStream: any): void; // Consider defining a more specific type for webStream if possible
|
||||
}
|
||||
|
||||
export interface IUnifiedStreamDataPackage {
|
||||
/**
|
||||
* the stream id, so Virtual Streams can talk to each other
|
||||
|
Reference in New Issue
Block a user