Paweł Perek

Results 4 comments of Paweł Perek
trafficstars

Hi @ctron, I found fresh `monaco.d.ts` in package I downloaded from official website https://microsoft.github.io/monaco-editor/. Unfortunately it seems like an old regexp doesn't work on new `monaco.d.ts`. I tried a few...

Yeah, I think you're right, taking a look at git blame makes me believe that monaco.d.ts from 0.31 package also was modified by hand to fit ts2rs logic, check it...

I tried to copy-paste .d.ts into https://github.com/ratchetdesigns/ts-bindgen without any modifications and got following error ``` // Error generating typescript rust bindings. binding generation error: enums with non-literal initializers not supported...

I also found other way with more indirection layers (https://www.reddit.com/r/rust/comments/uy1a3i/transpiling_typescript_into_rust/). We could transpile `.d.ts` into JSON schema using https://github.com/YousefED/typescript-json-schema and then use https://github.com/quicktype/quicktype to generate the `.rs` definition. The pros...