Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
e3ff1c3c4b | |||
446a9d1723 | |||
a749f91a8f | |||
8ea6db7b7f | |||
715ee43bcc | |||
c314b4e86f | |||
5824d34764 | |||
5eb9035dfe | |||
a49b1813fb | |||
e33ae24f17 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@api.global/typedrequest-interfaces",
|
||||
"version": "3.0.3",
|
||||
"version": "3.0.8",
|
||||
"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.3',
|
||||
version: '3.0.8',
|
||||
description: 'interfaces for making typed requests'
|
||||
}
|
||||
|
21
ts/index.ts
21
ts/index.ts
@ -75,3 +75,24 @@ export interface ITag {
|
||||
}
|
||||
|
||||
export type implementsTag<T, U extends T> = {};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
@ -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