Files
DefinitelyTyped/types/file-type/index.d.ts
2017-03-24 14:27:52 -07: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;
}
}