From cc49e97d504bfc88f3e86ed4713f9337d98cd393 Mon Sep 17 00:00:00 2001 From: Kim Joar Bekkelund Date: Tue, 23 Jan 2018 19:46:47 +0100 Subject: [PATCH] Use 'export =' for type-detect (#23049) --- types/type-detect/index.d.ts | 3 ++- types/type-detect/type-detect-tests.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/type-detect/index.d.ts b/types/type-detect/index.d.ts index 957300c7a1..7844361f61 100644 --- a/types/type-detect/index.d.ts +++ b/types/type-detect/index.d.ts @@ -3,4 +3,5 @@ // Definitions by: Bart van der Schoor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export default function typeDetect(obj: any): string; +declare function typeDetect(obj: any): string; +export = typeDetect; diff --git a/types/type-detect/type-detect-tests.ts b/types/type-detect/type-detect-tests.ts index 65b52c8bca..4f6e3af706 100644 --- a/types/type-detect/type-detect-tests.ts +++ b/types/type-detect/type-detect-tests.ts @@ -1,4 +1,4 @@ -import type from 'type-detect'; +import type = require('type-detect'); // $ExpectType string type(123);