fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-22 15:15:44 +01:00
parent e3ff1c3c4b
commit 274bf30973
2 changed files with 13 additions and 15 deletions

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;
}