mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Fixed this error message "resolves to a non-module entity and cannot be imported using this construct."
18 lines
470 B
TypeScript
18 lines
470 B
TypeScript
// Type definitions for file-type
|
|
// Project: https://github.com/sindresorhus/file-type
|
|
// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk <http://github.com/tcaesvk/>
|
|
// Definitions: https://github.com/DefinitelyType/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export = FileType;
|
|
|
|
declare function FileType(buf: Buffer): FileType.FileTypeResult;
|
|
|
|
declare namespace FileType {
|
|
export interface FileTypeResult {
|
|
ext: string;
|
|
mime: string;
|
|
}
|
|
}
|