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

(feat) add experimental $$Events and strictEvents support #1054

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

dummdidumm
Copy link
Member

$$Events lets the user define all events that a component can dispatch. If createEventDispatcher is not typed, the $$Events definition is added to it under the hood for type checking.
strictEvents can be used when the user is sure that there are no other events besides the one from createEventDispatcher and forwarded events - this removes the custom event fallback typing.

#442
#424
sveltejs/rfcs#38

Simon Holthausen added 2 commits June 14, 2021 12:34
$$Events lets the user define all events that a component can dispatch. If createEventDispatcher is not typed, the $$Events definition is added to it under the hood for type checking.
strictEvents can be used when the user is sure that there are no other events besides the one from createEventDispatcher and forwarded events - this removes the custom event fallback typing.

sveltejs#442
sveltejs#424
sveltejs/rfcs#38
@dummdidumm dummdidumm merged commit b0d3f69 into sveltejs:master Jun 15, 2021
@dummdidumm dummdidumm deleted the events-interface branch June 15, 2021 08:59
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.

1 participant