diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index a6ccba4..78f6f5f 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@api.global/typedrequest-interfaces', - version: '3.0.3', + version: '3.0.4', description: 'interfaces for making typed requests' } diff --git a/ts/index.ts b/ts/index.ts index bd510a3..ee19946 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -75,3 +75,20 @@ export interface ITag { } export type implementsTag = {}; + +export interface IStreamRequest extends implementsTR< + ITypedRequest, + IStreamRequest +> { + method: '##VirtualStream##'; + request: { + streamId: string; + streamChunk: any; + close: boolean; + }; + response: { + streamId: string; + streamChunk: any; + close: boolean; + }; +}