mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00: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:
parent
3326972199
commit
44449d5481
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user