-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix building with TypeScript 5.5 #247
Conversation
We ran into a regression when building unified with TypeScript 5.5. Splitting the overload into 2 separate overloads fixes it.
I wasn’t aware unified accepts a boolean instead of options with for plugin though 🤔 CI fails, because of type-coverage. |
Apparently |
That’s how presets can turn plugins off. Build fails tho |
Does it also accept |
both, see code: Lines 628 to 636 in 242105b
|
I find this weird TBH. This means plugins can never require options. Anyway, this is a TypeScript regression. I’ll make a reproduction. Maybe it’s best to pin |
They’re called options, indeed ;) |
Ok, I’ll just pin for now! This repo already has a script to fix the types that TS generates, so perhaps that’s also possible. |
This comment has been minimized.
This comment has been minimized.
thanks for looking into this, remco! |
Initial checklist
Description of changes
We ran into a regression when building unified with TypeScript 5.5. Splitting the overload into 2 separate overloads fixes it.
This doesn’t require a new release. It just fixes the types if they are built now, the types published to npm are fine.