Fixed ES6 import error. (#14917)

Fixed this error message "resolves to a non-module entity and cannot be imported using this construct."
This commit is contained in:
Kang 2017-03-10 15:58:22 +09:00 committed by Mohamed Hegazy
parent 3326972199
commit 44449d5481

16
file-type/index.d.ts vendored
View File

@ -5,11 +5,13 @@
/// <reference types="node" />
interface FileTypeResult {
ext: string
mime: string
export = FileType;
declare function FileType(buf: Buffer): FileType.FileTypeResult;
declare namespace FileType {
export interface FileTypeResult {
ext: string;
mime: string;
}
}
declare function FileType(buf: Buffer): FileTypeResult
export = FileType