mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
16 lines
403 B
TypeScript
16 lines
403 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" />
|
|
|
|
interface FileTypeResult {
|
|
ext: string
|
|
mime: string
|
|
}
|
|
|
|
declare function FileType(buf: Buffer): FileTypeResult
|
|
|
|
export = FileType
|