fix(core): update
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@api.global/typedrequest-interfaces', | ||||
|   version: '3.0.14', | ||||
|   version: '3.0.15', | ||||
|   description: 'interfaces for making typed requests' | ||||
| } | ||||
|   | ||||
							
								
								
									
										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