Open ierehon1905 opened 2 years ago
Hi, thank you for your library while working with it in a TS project I wrote some types hope they help someone
declare module "fft-js" { type Phasors = [number, number][]; function dft(vector: number[]): Phasors; function fft(vector: number[]): Phasors; function fftInPlace(): unknown; function idft(phasors: Phasors): Phasors; function ifft(phasors: Phasors): Phasors; const util: { exponent: () => void; fftFreq: (phasors: Phasors, freq: number) => unknown; fftMag: (phasors: Phasors) => unknown; }; }
Hi, thank you for your library while working with it in a TS project I wrote some types hope they help someone