Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
10148f7c50 | |||
274bf30973 | |||
e3ff1c3c4b | |||
446a9d1723 | |||
a749f91a8f | |||
8ea6db7b7f | |||
715ee43bcc | |||
c314b4e86f |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@api.global/typedrequest-interfaces",
|
||||
"version": "3.0.5",
|
||||
"version": "3.0.9",
|
||||
"private": false,
|
||||
"description": "interfaces for making typed requests",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@api.global/typedrequest-interfaces',
|
||||
version: '3.0.5',
|
||||
version: '3.0.9',
|
||||
description: 'interfaces for making typed requests'
|
||||
}
|
||||
|
22
ts/index.ts
22
ts/index.ts
@ -76,19 +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;
|
||||
streamChunk: any;
|
||||
close: boolean;
|
||||
};
|
||||
response: {
|
||||
streamId: string;
|
||||
streamChunk: any;
|
||||
close: boolean;
|
||||
};
|
||||
request: IUnifiedStreamReqResObject;
|
||||
response: IUnifiedStreamReqResObject;
|
||||
}
|
||||
|
@ -3,9 +3,12 @@
|
||||
"experimentalDecorators": true,
|
||||
"useDefineForClassFields": false,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "nodenext",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
}
|
||||
"verbatimModuleSyntax": true
|
||||
},
|
||||
"exclude": [
|
||||
"dist_*/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user