fix(core): update

This commit is contained in:
Philipp Kunz 2020-02-10 21:06:51 +00:00
parent 8316de8d82
commit 62f3b02812
2 changed files with 13 additions and 0 deletions

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;