Compare commits

...

8 Commits

Author SHA1 Message Date
bd7349ab37 1.0.11 2020-02-10 21:06:52 +00:00
62f3b02812 fix(core): update 2020-02-10 21:06:51 +00:00
8316de8d82 1.0.10 2019-11-10 16:35:43 +01:00
f2c953f0e8 fix(core): update 2019-11-10 16:35:43 +01:00
5696b3cb19 1.0.9 2019-11-10 16:05:15 +01:00
3e3b955f04 1.0.8 2019-09-24 18:40:38 +02:00
d9326300b0 fix(core): update 2019-09-24 18:40:37 +02:00
b9b80d1078 1.0.7 2019-08-23 17:01:36 +02:00
4 changed files with 21 additions and 2 deletions

2
package-lock.json generated
View File

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

View File

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

View File

@ -1,6 +1,12 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as typedrequestInterfaces from '../ts/index';
interface IRequestSample extends typedrequestInterfaces.implementsTR<typedrequestInterfaces.ITypedRequest, IRequestSample> {
method: 'hey';
request: {};
response: {};
}
tap.test('first test', async () => {
typedrequestInterfaces;
});

View File

@ -2,4 +2,17 @@ export interface ITypedRequest {
method: string;
request: object;
response: object;
error?: { text: string, data: any };
retry?: {
waitForMs: number;
reason: string;
};
}
export type implementsTR<T, U extends T> = {};
export interface IBroadCastEvent<T> {
name: string;
uniqueEventId: string;
payload: T;
}