From 62f3b028128d10ddd96c9273888bb1898c612402 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 10 Feb 2020 21:06:51 +0000 Subject: [PATCH] fix(core): update --- test/test.ts | 6 ++++++ ts/index.ts | 7 +++++++ 2 files changed, 13 insertions(+) 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;