Closed stevcooo closed 1 year ago
I think the Typescript/Glint way is to on 'whatever' this.taskName.perform
🤔
I've resolved it by using @gavant/glint-template-types
package.
import { PerformHelper } from '@gavant/glint-template-types/types/ember-concurrency/perform';
...
declare module '@glint/environment-ember-loose/registry' {
export default interface Registry {
....
perform: typeof PerformHelper;
....
}
}
Hello to you all, I'm trying to migrate our project to Typescript in order to be able to enable
Glint
. In many of ourhandlebars
components, we're using theperform
helper. But now whenever I run theglint
command I get a number of errors becausepefrom
is not recognized as a helper byGlint
. Does somebody has stumbled on something similar? Is there any workaround or a PR that will migrateperform
helper to TypeScript is the only solution?