tildeio / ember-element-helper

Dynamic element helper for Glimmer templates.
MIT License
44 stars 23 forks source link

TS2769 issued in Glint #91

Open csprocket777 opened 1 year ago

csprocket777 commented 1 year ago

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?

chriskrycho commented 1 year ago

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!