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: Compiler should support union types for the @Element decorator #89

Open
3 tasks done
itsmebasti opened this issue Mar 19, 2023 · 0 comments
Open
3 tasks done

Comments

@itsmebasti
Copy link

Prerequisites

Describe the Feature Request

Right now, the ESlint Compiler throws an exception when I define a union type for my element:

@Element() element: HTMLMyComponentElement | undefined;

To satisfy my "strict": true Typescript config I have to define it like so. Pretending element! exists is not the right solution since it will be undefined until it's rendered.

Describe the Use Case

It's required when using Typescript strict mode.

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

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

1 participant