ember-element-helper icon indicating copy to clipboard operation
ember-element-helper copied to clipboard

TS2769 issued in Glint

Open csprocket777 opened this issue 3 years ago • 1 comments

Using this in an addon and as I was porting it to Typescript and using Glint, it's reporting the following error:

error TS2769: The given value does not appear to be usable as a component, modifier or helper.
  No overload matches this call.
    The last overload gave the following error.
      Argument of type 'HTMLElement' is not assignable to parameter of type '(...positional: unknown[]) => unknown'.

16                 <Tag

Are there types available for this? How do I backfill this or resolve this complaint for Glint?

csprocket777 avatar Aug 26 '22 20:08 csprocket777

I'll be opening a PR with types for this tomorrow, as I authored them to test out a migration to .gts in our app this evening!

chriskrycho avatar Dec 02 '22 04:12 chriskrycho