Skip to content

fix(types): improve type safety#516

Merged
pi0 merged 3 commits into
mainfrom
fix/rollup-types
Feb 27, 2025
Merged

fix(types): improve type safety#516
pi0 merged 3 commits into
mainfrom
fix/rollup-types

Conversation

@danielroe

Copy link
Copy Markdown
Member

this improves internal type safety by removing type assertions and using satisfies to ensure we're providing the appropriate types.

it also narrows the type of the rollup options received in rollup:options hook so that it doesn't include promises/false/etc.

context: unjs/magic-regexp#502.

@danielroe danielroe requested a review from pi0 February 27, 2025 17:15

@pi0 pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pi0 pi0 merged commit a6570a5 into main Feb 27, 2025
@pi0 pi0 deleted the fix/rollup-types branch February 27, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants