lifeart / els-addon-typed-templates

Ember templates linting / autocomplete, based on Typescript language server
30 stars 3 forks source link

Incorrectly expects the argument to `async-await` to be an array #59

Closed wagenet closed 3 years ago

wagenet commented 3 years ago

https://github.com/tildeio/ember-async-await-helper

wagenet commented 3 years ago

Looks like I can overwrite this:

declare module 'ember-typed-templates' {
  interface GlobalRegistry {
    'async-await': <T>(params: T | Promise<T>) => T;
  }
}

I'm still not sure why it's the default.

wagenet commented 3 years ago

I think I misunderstood how this works.

lifeart commented 3 years ago

@wagenet if you have correct typings for this helper - we could add it to repo

wagenet commented 3 years ago

See #78