fix(core): update
This commit is contained in:
parent
8316de8d82
commit
62f3b02812
@ -1,6 +1,12 @@
|
|||||||
import { expect, tap } from '@pushrocks/tapbundle';
|
import { expect, tap } from '@pushrocks/tapbundle';
|
||||||
import * as typedrequestInterfaces from '../ts/index';
|
import * as typedrequestInterfaces from '../ts/index';
|
||||||
|
|
||||||
|
interface IRequestSample extends typedrequestInterfaces.implementsTR<typedrequestInterfaces.ITypedRequest, IRequestSample> {
|
||||||
|
method: 'hey';
|
||||||
|
request: {};
|
||||||
|
response: {};
|
||||||
|
}
|
||||||
|
|
||||||
tap.test('first test', async () => {
|
tap.test('first test', async () => {
|
||||||
typedrequestInterfaces;
|
typedrequestInterfaces;
|
||||||
});
|
});
|
||||||
|
@ -2,8 +2,15 @@ export interface ITypedRequest {
|
|||||||
method: string;
|
method: string;
|
||||||
request: object;
|
request: object;
|
||||||
response: object;
|
response: object;
|
||||||
|
error?: { text: string, data: any };
|
||||||
|
retry?: {
|
||||||
|
waitForMs: number;
|
||||||
|
reason: string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type implementsTR<T, U extends T> = {};
|
||||||
|
|
||||||
export interface IBroadCastEvent<T> {
|
export interface IBroadCastEvent<T> {
|
||||||
name: string;
|
name: string;
|
||||||
uniqueEventId: string;
|
uniqueEventId: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user