Skip to content

Commit

Permalink
fix(types): make config optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sudkumar committed May 7, 2021
1 parent a2b90ca commit 413256d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ declare module "generate-colors" {
* Brightness/value of hue
* https://en.wikipedia.org/wiki/Brightness
*/
brightness: number | ((defaultBrightness: number) => number)
brightness?: number | ((defaultBrightness: number) => number)
/**
* Saturation
* https://en.wikipedia.org/wiki/Colorfulness
*/
saturation: number | ((defaultSaturation: number) => number)
saturation?: number | ((defaultSaturation: number) => number)
/**
* This is the value of brightness of hue
* https://en.wikipedia.org/wiki/Brightness
* @deprecated Please use brightness
*/
contrast: number
contrast?: number
}
/**
* Get a color [r,g,b] for a given string
Expand All @@ -34,5 +34,5 @@ declare module "generate-colors" {
* Options applied to each further invocations
*/
options?: GenerateColorOptions
): (str: string) => [red: number, green: number, blue: green]
): (str: string) => [red: number, green: number, blue: number]
}

0 comments on commit 413256d

Please sign in to comment.