fix(core): update
This commit is contained in:
		| @@ -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; | ||||
| }); | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user