Skip to content

Typing #14

@ierehon1905

Description

@ierehon1905

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;
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions