Commit 556e0c6
authored
[link] Avoid inlining of
`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: microsoft/TypeScript#37151 (comment)
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, microsoft/TypeScript#57779 should be fixed. Inlining types from libraries should be configurable. Most dependencies are not pinned to patch versions but majors.LinkProps in emitted declarations (#78773)1 parent 323a9c9 commit 556e0c6
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | | - | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
0 commit comments