While there are incompatible declaration outputs between TypeScript 3.7+ and TS3.5, there is a workaround to use the latest TypeScript version while still maintaining compatible
In this PR, any users who are on TS3.5 and below, TypeScript will automatically look at the
What I did
I modified the
Refer to the comments in #9463 for more detail.
How to test
I tested it by manually altering
I also verified that the folder
I'd probably like a second set of eyes on it to make sure it works and also help out on any automated tests(if we think it's worth the effort).
@gaetanmaisse Good points, I just followed the example on downlevel-dts so I had to think about it for a sec. This was the most compelling reason I could think of:
And yes, good call on the
It probably is worth it to say though, I'll defer to the maintainers because that's the biggest impact as a result of this question. I don't have a strong preference.
Note: I added this to every
For example, if someone wants to create a new package, do they copy and paste from an existing
Maintainers: feel free to modify the PR if that wasn't the right call or I can do it as soon as you let me know.
@lychyi LGTM! I just added a commit with some
@shilman @ndelangen don't know if someone else wants to take a look 👨🏻💻 If not, I think it can be merged, what's the process, merge on
I just released the second PR as part of https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.14
Since this feels like a biggish change, can you please QA that release a bit and let me know if it looks good? Once I get your go-ahead, I'll release this change on 5.3.x.