-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to TS or supply ambient definitions #239
Comments
If converting to TS, is there a setup that people are using in embroider addons? Would love an example. cc @NullVoxPopuli |
Is there a consistent TS setup among them? |
mostly, ya |
I ran into the lack of page-title types when trying to use the new ember 5.1 ember-source types:
To fix, I added types to import { HelperLike } from '@glint/template';
export type PageTitle = abstract new <T>() => InstanceType<
HelperLike<{
Args: {
Positional: [value: T];
};
Return: '';
}>
>;
declare module '@glint/environment-ember-loose/registry' {
export default interface Registry {
'page-title': PageTitle;
}
} |
@knownasilya opened up #256 that might help? |
@NullVoxPopuli This should be fixed by #275 ? |
yup! thanks! |
As part of Ember.js RFC #0800, this package needs to supply type definitions. Preferably, this would happen by converting to TS and generating from the source; as an alternative, it can publish ambient types (presumably starting with the ones on DefinitelyTyped).
All the members of the Typed Ember team are happy to advise on how to do this; feel free to reach out in #dev-typescript on Discord if you have questions!
The text was updated successfully, but these errors were encountered: