From d819ae8dcf971b19995ea312817d895c59d72bf1 Mon Sep 17 00:00:00 2001 From: Naor Torgeman Date: Mon, 12 Jun 2017 16:46:57 +0300 Subject: [PATCH 1/2] Create index.d.ts ReactInputMask should be exported as default to be proper used. --- types/react-input-mask/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-input-mask/index.d.ts b/types/react-input-mask/index.d.ts index 560dc8cc2b..28095b4104 100644 --- a/types/react-input-mask/index.d.ts +++ b/types/react-input-mask/index.d.ts @@ -41,4 +41,4 @@ declare namespace reactInputMask { } } declare var ReactInputMask: typeof reactInputMask.ReactInputMask; -export = ReactInputMask; +export default ReactInputMask; From 07a1a1a59a7673b13615ac638cab5de3937ff0e4 Mon Sep 17 00:00:00 2001 From: Naor Torgeman Date: Sat, 17 Jun 2017 17:09:14 +0300 Subject: [PATCH 2/2] update test to work with default export --- types/react-input-mask/react-input-mask-tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-input-mask/react-input-mask-tests.tsx b/types/react-input-mask/react-input-mask-tests.tsx index 0a4f2cd74e..d116b2b27a 100644 --- a/types/react-input-mask/react-input-mask-tests.tsx +++ b/types/react-input-mask/react-input-mask-tests.tsx @@ -1,4 +1,4 @@ -import * as ReactInputMask from 'react-input-mask'; +import ReactInputMask from 'react-input-mask'; import * as React from 'react';