Skip to content
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

Fixes Typecheck bug in preactjs/preact#3934 #452

Merged
merged 3 commits into from Jul 21, 2023

Conversation

paulreece
Copy link
Contributor

Added SignalLike as an option for default that fixes /preact/issues/3934 while preserving current functionality. This is a simple fix but it seems like it would do what's needed.

@paulreece
Copy link
Contributor Author

@marvinhagemeister @rschristian Let me know what you think and if any changes are required.

index.d.ts Outdated Show resolved Hide resolved
Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

CI failure is due to us having an older version of Preact (without SignalLike) as a devDep, nothing you necessarily need to worry about though I don't love the idea of increasing the minimum supported Preact version (if the user wants TypeScript support, anyways).

@paulreece
Copy link
Contributor Author

Thanks for the quick response! Let me know if I can help more with this or anything else.

"chai": "^3.5.0",
"copyfiles": "^1.0.0",
"chai": "^4.3.7",
Copy link
Member

Choose a reason for hiding this comment

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

See #453 for justification, but need to update some of these here w/ the type fix to satisfy CI.

@rschristian rschristian merged commit 7fb5f59 into preactjs:main Jul 21, 2023
1 of 2 checks passed
@rschristian
Copy link
Member

We really appreciate the fix! ❤️

I'll try to cut a release in a bit, after my dinner.

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.

typescript complains with SignalLike as property boolean on default
2 participants