Luis Ramirez

Results 7 comments of Luis Ramirez

I researched a bit and I found something interesting. The generated `melonjs.module.d.ts` contains several modules with an "index" module at the end. [This StackOverflow question](https://stackoverflow.com/questions/67656640/how-to-emit-ts-declarations-for-legacy-commonjs-dependencies-with-correct-modul) describes a similar situation, where...

I think I found a possible solution: using `--outdir` instead of `--outfile` in the type generation command. I tried that in a local copy changing the `types` script in `package.json`,...

> I modified it to only generate one `.d.ts` file : `"types": "tsc build/melonjs.module.js --declaration --allowJs --emitDeclarationOnly --outdir dist"` > > would this be working on your side ? I'd...

I've just tested it. It allows me to build the Typescript test project successfully. However, I don't get any type suggestion when, for example, I'm using VS Code. I see...

PD: When I try to build the melonJS library from the source, I get ESLint errors because it tries to parse non-code files. I worked around that locally adding `"ignorePatterns":...

Hello. Sorry, I've been busy these days. I'll check it in the coming days. El mar, 13 de dic. de 2022 4:26 a. m., Olivier Biot < ***@***.***> escribió: >...

> @lartkma any feedback by any chance ? I've just tested it, and it seems to work. I can compile the test project and I got the type suggestions. You...