diff --git a/test/test.ts b/test/test.ts index 5be658a..786aeaf 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,6 +1,12 @@ import { expect, tap } from '@pushrocks/tapbundle'; import * as typedrequestInterfaces from '../ts/index'; +interface IRequestSample extends typedrequestInterfaces.implementsTR { + method: 'hey'; + request: {}; + response: {}; +} + tap.test('first test', async () => { typedrequestInterfaces; }); diff --git a/ts/index.ts b/ts/index.ts index 29f574d..1fb5d30 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -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 = {}; + export interface IBroadCastEvent { name: string; uniqueEventId: string;