From 7ec51f09e090743b6529929ba1c09e441ecc712b Mon Sep 17 00:00:00 2001 From: Dominique Rau Date: Tue, 6 Aug 2019 13:40:10 +0200 Subject: [PATCH] chore(typings): add promise to typings --- index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2817d9c..5ac0142 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ -import {Context} from 'aws-lambda'; +import { Context } from 'aws-lambda'; interface ContextOptions { region?: string; @@ -10,8 +10,12 @@ interface ContextOptions { timeout?: number; } +interface MockContext extends Context { + Promise: Promise; +} + declare var mockContext: { - (options?: ContextOptions): Context; + (options?: ContextOptions): MockContext; }; export = mockContext;