mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Use 'export =' for type-detect (#23049)
This commit is contained in:
Vendored
+2
-1
@@ -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,4 +1,4 @@
|
||||
import type from 'type-detect';
|
||||
import type = require('type-detect');
|
||||
|
||||
// $ExpectType string
|
||||
type(123);
|
||||
|
||||
Reference in New Issue
Block a user