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

False positive for no-incompatible-property-type with converter passed in #349

Open
bgotink opened this issue Jan 15, 2024 · 0 comments
Open

Comments

@bgotink
Copy link

bgotink commented Jan 15, 2024

I've got a factory function creating attribute converters, but when passing these into @property they don't seem to be picked up by the no-incompatible-property-type check

// causes warning
@property({converter: convert(Iban)})
declare warning: Iban;

// doesn't cause warning
@property({converter: {...convert(Iban)}})
declare noWarning: Iban;

// doesn't cause warning either
@property({converter: ibanConverter}) // with const ibanConverter = convert(Iban) 
declare alsoNoWarning: Iban;
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