Compare commits

..

4 Commits

Author SHA1 Message Date
38df866c05 1.0.14 2020-07-04 16:57:07 +00:00
d3fc1d3256 fix(core): update 2020-07-04 16:57:05 +00:00
ca0c191a8d 1.0.13 2020-02-20 22:01:59 +00:00
6b1791e578 fix(core): update 2020-02-20 22:01:58 +00:00
3 changed files with 10 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@apiglobal/typedrequest-interfaces",
"version": "1.0.12",
"version": "1.0.14",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@apiglobal/typedrequest-interfaces",
"version": "1.0.12",
"version": "1.0.14",
"private": false,
"description": "interfaces for making typed requests",
"main": "dist/index.js",

View File

@ -1,5 +1,12 @@
export interface ITypedRequest {
method: string;
authInfo?: {
jwt: string;
};
serverData?: {
jwtData: any;
jwtValid: boolean;
};
request: object;
response: object;
error?: { text: string; data: any };
@ -11,7 +18,7 @@ export interface ITypedRequest {
export type implementsTR<T, U extends T> = {};
export interface IBroadCastEvent<T> {
export interface ITypedEvent<T> {
name: string;
uniqueEventId: string;
payload: T;