davidmerfield/randomColor

is there a typings for this to be used in Angular 2?

Closed this issue ยท 7 comments

I have converted this into an angular service for my own purposes but it would be great if there was a typings file for your tool.

Here's a link to my service: https://gist.github.com/tylerlindell/130586743d41fede94c464f0b66a7126

it only generates one random color at a time but it does the job for what I need right now

@tylerlindell thank you so much for that service script!

@SmallhillCZ that looks promising, have you tested it?

@suparnavg you got it sir!

No in the end I just used the service.

@davidmerfield, The definition file for colorRandom (types/randomcolor) has an error in the module definition, which causes errors during the typescript compile time.

I opened the PR #107 to include the .d.ts file to your library, including it also in the package.json, so the people that is using Typescript and randomColor won't need to install the @types/randomcolor package anymore (better XP for the users) and finally fixed the export function (which is causing the errors).

Closing for now. Please direct these inquiries to DefinitelyTyped. I don't consider this the responsibility of randomColor.