Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use code example as is #4

Open
Luxcium opened this issue Aug 2, 2021 · 0 comments
Open

Can not use code example as is #4

Luxcium opened this issue Aug 2, 2021 · 0 comments

Comments

@Luxcium
Copy link

Luxcium commented Aug 2, 2021

I tried to copy-paste the code example and it is not working (I updated the const keyword for let) but I still have an error message: Expected 1 arguments, but got 0.ts(2554) index.d.ts(201, 17): An argument for '$type' was not provided.

Screenshot_20210802_153225


// transpile to Less
 result = ColorMath.evaluate('rgb 165 42 42 >> .2', {
  evaluator: new ColorMath.Evaluators.LessEvaluator(),
});
console.log(result.result); // prints "saturate(rgb(165, 42, 42), 20%, relative)"

Screenshot_20210802_153532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant