mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[beats] fixes according to plantain-00's feedback
This commit is contained in:
parent
42832414db
commit
ffb71cb8f9
@ -1,4 +1,4 @@
|
||||
import * as beats from 'beats';
|
||||
import beats = require('beats');
|
||||
|
||||
const bins: beats.Bin[] = [
|
||||
{ lo: 0, hi: 512, threshold: 0, decay: 0.005 },
|
||||
|
||||
4
types/beats/index.d.ts
vendored
4
types/beats/index.d.ts
vendored
@ -5,9 +5,7 @@
|
||||
|
||||
export = beats;
|
||||
|
||||
type DetectFunction = (frequencies: Uint8Array | Float32Array | ReadonlyArray<number>, dt?: number) => Float32Array;
|
||||
|
||||
declare function beats(bins: ReadonlyArray<beats.Bin>, minSeparation?: number): DetectFunction;
|
||||
declare function beats(bins: ReadonlyArray<beats.Bin>, minSeparation?: number): (frequencies: Uint8Array | Float32Array | ReadonlyArray<number>, dt?: number) => Float32Array;
|
||||
|
||||
declare namespace beats {
|
||||
interface Bin {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user