fix(core): update
This commit is contained in:
parent
e3ff1c3c4b
commit
274bf30973
@ -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'
|
||||
}
|
||||
|
26
ts/index.ts
26
ts/index.ts
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user