-
Notifications
You must be signed in to change notification settings - Fork 108
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(angular-output-target): escape kebab-case event names #307
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, but is there any harm in just wrapping these in strings by default?
@tanner-reits there would be no harm in always escaping the type name in the interface declaration. I think a reason we wouldn't always escape is to align closer to how a developer would write an interface manually. Formatters such as prettier remove quotes around type declarations that do not require escaping. If we landed on wanting to always escape, we would likely want to get larger team exposure, as it would change the generated output of existing projects using the Angular output target. |
packages/angular-output-target/src/generate-angular-component.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Ryan Waskiewicz <ryanwaskiewicz@gmail.com>
Would it make more sense to merge this to fix the existing issue, and consider escaping all the definitions as a potential enhancement further down the road? |
Any updates on this? If not, could you guys merge this please? |
I'll second this. Currently, we're manually applying this patch to our repositories to get around the issue with kebab case event names. |
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally for affected output targetsnpm test
) were run locally and passednpm run prettier
) was run locally and passedPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Kebab-case event names do not generate proxies correctly.
Issue URL: #212
What is the new behavior?
Does this introduce a breaking change?
Other information