Closed bcaudan closed 6 years ago
Interesting! This is definitely a bug. We should avoid workarounds (sounds like they're all basically about ignoring ES6 style), so your proposed solution of adding a setEnabled(bool)
sounds good to me. If you add it to the JS lib and the TS definitions, I'd happily accept a PR. Thank you!
This will be included in the next release. Thanks again!
I am using typescript and this code:
give me this error:
As explained in https://github.com/Microsoft/TypeScript/issues/6751, there are workarounds but the right way could be to expose methods to enable/disable colors.
If it sounds relevant to you, I would be glad to help.