mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
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:
16
file-type/index.d.ts
vendored
16
file-type/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user