From 63f1cb7748a844f73df24c969ba8d172da9a669b Mon Sep 17 00:00:00 2001 From: Simon Garner Date: Fri, 14 Feb 2020 16:54:29 +1300 Subject: [PATCH 1/2] Make parentContext optional in ModalOptions type --- types/modal.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/modal.d.ts b/types/modal.d.ts index b49ccd77b9..4bb639cd2e 100644 --- a/types/modal.d.ts +++ b/types/modal.d.ts @@ -128,7 +128,7 @@ export interface ModalOptions { */ onOk?: () => any; - parentContext: Object; + parentContext?: Object; } export interface ModalConfirm { From 8da21a12b343cbe519d3ff4667cc11f7d7c24ea2 Mon Sep 17 00:00:00 2001 From: Simon Garner Date: Sat, 15 Feb 2020 15:29:09 +1300 Subject: [PATCH 2/2] Use non-primitive object type for parentContext --- types/modal.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/modal.d.ts b/types/modal.d.ts index 4bb639cd2e..a5bc6e151a 100644 --- a/types/modal.d.ts +++ b/types/modal.d.ts @@ -128,7 +128,7 @@ export interface ModalOptions { */ onOk?: () => any; - parentContext?: Object; + parentContext?: object; } export interface ModalConfirm {