mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Add minimumBytes property to file-type
This commit is contained in:
@@ -2,3 +2,5 @@ import fileType = require("file-type");
|
||||
|
||||
fileType(new Buffer([0xFF, 0xD8, 0xFF]));
|
||||
fileType(new Uint8Array([0xFF, 0xD8, 0xFF]));
|
||||
|
||||
const minimumBytes: number = fileType.minimumBytes;
|
||||
|
||||
Vendored
+2
@@ -15,4 +15,6 @@ declare namespace FileType {
|
||||
ext: string;
|
||||
mime: string;
|
||||
}
|
||||
|
||||
const minimumBytes: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user