You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using @types/chroma-js v1.3.0 with typescript v2.2.0 and v2.3.0 and both crash while compiling with this output:
ERROR in /usr/local/var/www/projects/ztrim/node_modules/@types/chroma-js/index.d.ts (290,29): ',' expected.
ERROR in /usr/local/var/www/projects/ztrim/node_modules/@types/chroma-js/index.d.ts (202,66): Generic type 'Scale<OutType, Color>' requires 2 type argument(s).
ERROR in /usr/local/var/www/projects/ztrim/node_modules/@types/chroma-js/index.d.ts (204,38): Generic type 'Scale<OutType, Color>' requires 2 type argument(s).
...
ERROR in /usr/local/var/www/projects/ztrim/node_modules/@types/chroma-js/index.d.ts (352,18): Generic type 'Scale<OutType, Color>' requires 2 type argument(s).
Anyone to confirm ?
The text was updated successfully, but these errors were encountered:
Works with typescript@2.3.4 -- and should work back as far as 2.3; the 'comma expected' is due to the default generic, which was added in 2.3 (see microsoft/TypeScript#2175).
@ruffiem are you sure that, when you tried with Typescript 2.3.0, your build system was genuinely using it?
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the @types modules in DefinitelyTyped.
To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the definitely-typed channel.
I tried using @types/chroma-js v1.3.0 with typescript v2.2.0 and v2.3.0 and both crash while compiling with this output:
Anyone to confirm ?
The text was updated successfully, but these errors were encountered: