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

Custom Events and Typescript #675

Open
andrewtimberlake opened this issue Jan 10, 2024 · 1 comment
Open

Custom Events and Typescript #675

andrewtimberlake opened this issue Jan 10, 2024 · 1 comment

Comments

@andrewtimberlake
Copy link

I don’t know if this is Glint or Ember related.

When creating a function to handle a custom event, Glint complains that the signature doesn’t match. The signature expects an Event rather than a CustomEvent
When creating a function to handle a mouse event {{on "click" this.handler}}, the signature for this.handler correctly expects a MouseEvent
CleanShot 2024-01-10 at 11 13 07@2x

@vstefanovic97
Copy link

@andrewtimberlake actually I think this is not related to Glint nor Ember, this is just a problem in Typescript in general.
You can see microsoft/TypeScript#28357 (comment) for a possible solution

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

No branches or pull requests

2 participants