Closed gonza-lito closed 1 year ago
This is a problem with the Bridge.NET generated .d.ts file. Bridge.NET tries to represent the C# source in as close as possible form, but Typescript does not allow this kind of duplication of inheritance, so this is one place Bridge gets it wrong. It's not a problem for the translated Javascript itself, since Bridge uses its own translation to Javascript (not Typescrip;t's), and the Typescript .d.ts file is for convenience only.
Unfortunately, there is no one to complain to, as Bridge.NET is no longer supported by the creators. It is still being used in this project. However, this is not a problem since this kind of error only surfaces for Typescript when you directly interact with a member in violation of Typescript's rules. The Javascript translation of this project is used for Intellisense in the web editor, which only uses the CodeService API's which do not cause the problem to surface.
The only workaround that I've found is to hand edit the generated .d.ts file and remove the claim that SyntaxList implements the interface.
Hi, we're using the JS version of the packages and noticed the typings are not correct, I can't find Bridge.NET library anywhere to see how those typings are generated.
Typing errors:
Any information would be much appreciated! Thx