Issue with using source files as types #10504
-
SummaryIn the docs, it's recommended to use source files as types. However, if the consuming application tsconfig E.g. app with moduleResolution: "bundler" and package with moduleResolution: "nodenext" disagree on where @ts-expect-error needs to be used or not. It would be solved if the app's task didn't typecheck the package's types. Didn't find a way to do it in this setup. Any ideas? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
This limitation is listed here. It's a part of how TypeScript works. |
Beta Was this translation helpful? Give feedback.
This limitation is listed here. It's a part of how TypeScript works.