mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
[audiobuffer-to-wav] Add definition for audiobuffer-to-wav (#36553)
This commit is contained in:
parent
c35d0df691
commit
891dfd1e9d
5
types/audiobuffer-to-wav/audiobuffer-to-wav-tests.ts
Normal file
5
types/audiobuffer-to-wav/audiobuffer-to-wav-tests.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import audioBufferToWav = require('audiobuffer-to-wav');
|
||||
|
||||
declare const buffer: AudioBuffer;
|
||||
audioBufferToWav(buffer);
|
||||
audioBufferToWav(buffer, { float32: true });
|
||||
12
types/audiobuffer-to-wav/index.d.ts
vendored
Normal file
12
types/audiobuffer-to-wav/index.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
// Type definitions for audiobuffer-to-wav 1.0
|
||||
// Project: https://github.com/Jam3/audiobuffer-to-wav
|
||||
// Definitions by: Mitsuka Hanakura a.k.a. ragg <https://github.com/ra-gg>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Options {
|
||||
float32?: boolean;
|
||||
}
|
||||
|
||||
declare function audioBufferToWav(buffer: AudioBuffer, options?: Options): ArrayBuffer;
|
||||
|
||||
export = audioBufferToWav;
|
||||
24
types/audiobuffer-to-wav/tsconfig.json
Normal file
24
types/audiobuffer-to-wav/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"audiobuffer-to-wav-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/audiobuffer-to-wav/tslint.json
Normal file
1
types/audiobuffer-to-wav/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user