mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add blob-to-buffer
This commit is contained in:
parent
616c84c0e7
commit
f0e1cf4cd4
6
types/blob-to-buffer/blob-to-buffer-tests.ts
Normal file
6
types/blob-to-buffer/blob-to-buffer-tests.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import * as blobToBuffer from "blob-to-buffer";
|
||||
|
||||
blobToBuffer(new Blob(), (error, buffer) => {
|
||||
console.log(error);
|
||||
console.log(buffer);
|
||||
});
|
||||
11
types/blob-to-buffer/index.d.ts
vendored
Normal file
11
types/blob-to-buffer/index.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
// Type definitions for blob-to-buffer 1.2
|
||||
// Project: https://github.com/feross/blob-to-buffer
|
||||
// Definitions by: nrlquaker <https://github.com/nrlquaker>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
declare function blobToBuffer(blob: Blob, callback: (error: any, buffer: Buffer) => void): void;
|
||||
declare namespace blobToBuffer {}
|
||||
export = blobToBuffer;
|
||||
23
types/blob-to-buffer/tsconfig.json
Normal file
23
types/blob-to-buffer/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"blob-to-buffer-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/blob-to-buffer/tslint.json
Normal file
3
types/blob-to-buffer/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user