Compare commits

..

2 Commits

Author SHA1 Message Date
10148f7c50 3.0.9 2024-02-22 15:15:45 +01:00
274bf30973 fix(core): update 2024-02-22 15:15:44 +01:00
3 changed files with 14 additions and 16 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@api.global/typedrequest-interfaces",
"version": "3.0.8",
"version": "3.0.9",
"private": false,
"description": "interfaces for making typed requests",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedrequest-interfaces',
version: '3.0.8',
version: '3.0.9',
description: 'interfaces for making typed requests'
}

View File

@ -76,23 +76,21 @@ export interface ITag {
export type implementsTag<T, U extends T> = {};
export interface IUnifiedStreamReqResObject {
streamId: string;
cycle: 'request' | 'response';
cycleId: string;
type: 'start' | 'binaryChunk' | 'object' | 'end' | 'keepAlive';
streamChunk?: any;
keepAlive?: boolean;
next?: boolean;
}
export interface IStreamRequest extends implementsTR<
ITypedRequest,
IStreamRequest
> {
method: '##VirtualStream##';
request: {
streamId: string;
type: 'start' | 'binaryChunk' | 'object' | 'end' | 'keepAlive';
streamChunk?: any;
keepAlive?: boolean;
next?: boolean;
};
response: {
streamId: string;
type: 'start' | 'binaryChunk' | 'object' | 'end' | 'keepAlive';
streamChunk?: any;
keepAlive?: boolean;
next?: boolean;
};
request: IUnifiedStreamReqResObject;
response: IUnifiedStreamReqResObject;
}