The following code worked perfectly fine for all color functions, with the exception of `rgb` and `rgba`, which had the optional `round: boolean` parameter:
` [K in keyof ColorSpaces]: () => ColorSpaces[K];`
I've added in each function now explicitly, and put in docs to boot.
Renamed namespace Chroma which contains all the types to chroma so it is merged with the exported variable chroma and the types are externally visible. Added corresponding test.
* Multiple fixes to types/chroma-js/index.d.ts
* Fixed bezier method
* typed string parameters to be string unions
* added out parameter to Scale.colors
* changed color types to number tuples instead of arrays
* added types/chroma-js/tslint.json
* [chroma-js] Added documentation
Copied method descriptions from the API docs.
* [chroma-js] Added more documentation
Copied method descriptions from the API docs.
* Actually ran the linter...
* [chroma-js] reverted package.json