Compare commits

..

2 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
4 changed files with 15 additions and 2 deletions

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@apiglobal/typedrequest-interfaces",
"version": "1.0.10",
"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,8 +2,15 @@ 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;