Compare commits

...

12 Commits

Author SHA1 Message Date
5824d34764 3.0.5 2024-02-21 01:57:19 +01:00
5eb9035dfe fix(core): update 2024-02-21 01:57:19 +01:00
a49b1813fb 3.0.4 2024-02-21 01:55:50 +01:00
e33ae24f17 fix(core): update 2024-02-21 01:55:49 +01:00
2e13632fec 3.0.3 2024-02-21 00:34:24 +01:00
9175af027b fix(core): update 2024-02-21 00:34:24 +01:00
f9524a62d7 3.0.2 2024-02-20 20:47:12 +01:00
7889e04915 fix(core): update 2024-02-20 20:47:12 +01:00
a81b9eced6 3.0.1 2023-08-04 13:19:24 +02:00
4aa06fe830 fix(core): update 2023-08-04 13:19:23 +02:00
adeab3e7b7 3.0.0 2023-08-03 21:18:39 +02:00
5a356b66f6 BREAKING CHANGE(core): update 2023-08-03 21:18:38 +02:00
3 changed files with 29 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@api.global/typedrequest-interfaces",
"version": "2.0.2",
"version": "3.0.5",
"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: '2.0.2',
version: '3.0.5',
description: 'interfaces for making typed requests'
}

View File

@ -11,6 +11,14 @@ export interface ITypedRequest {
jwt: string;
};
/**
* localData tracks things within typedrequest.
* needed for VirtualStreams
*/
localData?: {
firstTypedrouter?: any;
}
/**
* server data that is added for dealing with the request server side. Will be omitted when sending the response
*/
@ -44,6 +52,8 @@ export interface ITypedRequest {
/**
* a correlation id that
* used for matching request and response
* !important. Don't remove.
*/
correlation?: {
id: string;
@ -65,3 +75,20 @@ export interface ITag {
}
export type implementsTag<T, U extends T> = {};
export interface IStreamRequest extends implementsTR<
ITypedRequest,
IStreamRequest
> {
method: '##VirtualStream##';
request: {
streamId: string;
streamChunk: any;
close: boolean;
};
response: {
streamId: string;
streamChunk: any;
close: boolean;
};
}