some types compile to a massive conditional type that causes performance issues #51106
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Bug Report
sorry i tried to create a minimal repro but this is the best i could do, so to reproduce this, run
npm install @detachhead/ts-helpers
🔎 Search Terms
d.ts performance
🕗 Version & Regression Information
4.9.0-dev.20221007
💻 Code
takes like 2 minutes to compile:
takes a couple seconds to compile:
🙁 Actual behavior
the
power
function is being compiled to return this huge conditional type that causes the compiler to hang for several minutes when it's imported:🙂 Expected behavior
The text was updated successfully, but these errors were encountered: