Skip to content

Commit

Permalink
Create index.d.ts
Browse files Browse the repository at this point in the history
typescript definitions
  • Loading branch information
Eulentier161 committed Mar 14, 2022
1 parent cfb2b6c commit b15704b
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 b15704b

Please sign in to comment.