runem / lit-analyzer

Monorepository for tools that analyze lit-html templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bgotink opened this issue · comments

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;