Use 'export =' for type-detect (#23049)

This commit is contained in:
Kim Joar Bekkelund
2018-01-23 10:46:47 -08:00
committed by Andy
parent 00865c52ee
commit cc49e97d50
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -3,4 +3,5 @@
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default function typeDetect(obj: any): string;
declare function typeDetect(obj: any): string;
export = typeDetect;
+1 -1
View File
@@ -1,4 +1,4 @@
import type from 'type-detect';
import type = require('type-detect');
// $ExpectType string
type(123);