Mateusz Burzyński
Mateusz Burzyński
@mattpocock we can probably just output `never` at those locations instead of `{}` - but it's best to double-check that and add those to all existing type gen tests in...
> So what is the recommended way to handle this ? Add typegen files to eslintignore ? Yes, this is a reasonable approach. I will probably look in the future...
Currently, only TS/JS files are supported by this feature. I'd love to take a look at some repro case that involves those kind of files. Is anybody here able to...
This is the most green thing I've seen this week. Nice!!
I end up with a different crash there. `MethodSignature`s should be handled there since https://github.com/microsoft/TypeScript/pull/56277 . I reduced a sample based on the code there though: ```ts declare const SIGNAL:...
Tbf, `@emotion/react/types/jsx-namespace` was never something you were supposed to have access to. It also didn't work before https://github.com/emotion-js/emotion/pull/3281 (and before https://github.com/emotion-js/emotion/pull/3284 ) with `moduleResolution: node16`. It only worked in your...
`moduleResolution: node16` (or `moduleResolution: nodenext`) is a more future-proof setting. What's the input code that generates this declaration file? I can't repro it on this simple [TS playground](https://www.typescriptlang.org/play/?jsxImportSource=%40emotion%2Freact#code/PTAEAECsGcA8EkC2AHA9gJwC4GVUFd0BjAUwC4JjFVMBLVAO2HWIENDMAoECKgEzwA2xAErFoqAXloNy9VL2IcaKDJlABvUIWjRQAX1AAzdKkSgAROErU6jZm0zmA3Bw7FYaLKAWGWgtYZ49Oy2oAAqLABGABQAlBocoKDMmAT0oAA8vDQAblo6ALzq2tDR6nqxBsAAfC56HEA). The generated...
Babel configs don't matter much for dts generation. > I did some testing by using the moduleResolution: bundler. The generated import changes to: It should be fine in your case,...
Improvements around this are planned for v5 where we revamp our type definitions as a whole. The goal is to provide as maximum type-safety and inference as possible (sometimes aided...
I've also bumped into this while linking packages generated by rollup for local testing purposes (yes - I could change rule settings to ignore those directories, but that's not the...