Files
DefinitelyTyped/file-type/index.d.ts
Kang 44449d5481 Fixed ES6 import error. (#14917)
Fixed this error message "resolves to a non-module entity and cannot be imported using this construct."
2017-03-09 22:58:22 -08:00

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;
}
}