-
Notifications
You must be signed in to change notification settings - Fork 449
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
bold causing problems #168
Comments
Will accept pull request |
Can you confirm whether or not this is still an issue with the typings? Otherwise I will investigate at some point, I'm interested in full TS compliance and moving the typings out of DT to this repo. |
There is still an issue on my side: |
Yeah, I’ve since read more — the issue is that ES6 has “bold()” as a String prototype — however, that is deprecated. So at some point these typings should be correct again :) but in the meantime we can see what an elegant fix is... |
I couldn't seem to repro as I was messing around trying to solve this. Can someone (@alexandrebours ?) provide a MWE that triggers the TS2717, so I can investigate as well? Moreover, very open to any ideas/workarounds... |
Is it sufficient to ignore the error?? But even though this silences the error, does |
(Actually, I only have this silly browser example, without importing |
MWE provided thanks to @Dante-101 ... I’ll try applying my tentative fix to it soon-ish unless someone beats me to it. Note we should test against master branch of colors which now has the built-in typings and al the other 1.2.0 fixes |
@SlurpTheo We need to make it work with targets newer than ES2015. A lot of us use |
So seems like my ignore trick works lol. Thanks again for the MWE. I'm going to push my "fix," and then mark this closed. But, if anyone ever has a more elegant fix, or if bold is finally removed from ES, someone please re-open or make a new issue. |
Hi Marak,
There's currently a problem as referenced here:
#110
When using colors in TypeScript, we get the following error:
typings/globals/colors/index.d.ts(109,5): error TS2300: Duplicate identifier 'bold'
Is it possible for you to implement a workaround or at least update the typings here?:
https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/colors
Thanks
The text was updated successfully, but these errors were encountered: