next.js
556e0c6a - [link] Avoid inlining of `LinkProps` in emitted declarations (#78773)

Commit
347 days ago
[link] Avoid inlining of `LinkProps` in emitted declarations (#78773) `tsc` might decide that `LinkProps` should be inlined which would break libraries depending on `next` since that effectively pins the dependency to a patch version. Workaround is explained here: https://github.com/microsoft/TypeScript/issues/37151#issuecomment-756232934 I can't come up with a minimal repro but verified it manually in an internal package. This would've avoided https://github.com/vercel/microfrontends/pull/171 We should probably lint against types that could be interfaces. But really, https://github.com/microsoft/TypeScript/issues/57779 should be fixed. Inlining types from libraries should be configurable. Most dependencies are not pinned to patch versions but majors.
Author
Parents
Loading