Skip to content

Commit

Permalink
Merge pull request #24 from Eulentier161/master
Browse files Browse the repository at this point in the history
Create index.d.ts
  • Loading branch information
anomal authored Jul 27, 2022
2 parents cfb2b6c + b15704b commit 448f938
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export = Rainbow;
declare function Rainbow(): void;
declare class Rainbow {
setSpectrum: (...args: string[]) => Rainbow;
setSpectrumByArray: (array: string[]) => Rainbow;
colourAt: (number: number) => string;
colorAt: (number: number) => string;
setNumberRange: (minNumber: number, maxNumber: number) => Rainbow;
}

0 comments on commit 448f938

Please sign in to comment.