-
Notifications
You must be signed in to change notification settings - Fork 603
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
TypeScript definitions for injected session service #2064
Comments
It's been a year on this issue. Any updates here? |
just so you guys now, |
I'd be interesting in contributing type definitions for ESA if there is interest from the maintainers. @marcoow @BobrImperator Any opinions on how best to add type definitions? An index.d.ts file would be the most straightforward to add but might end up being difficult to maintain. |
There is also the possibility of full typescript conversion of the addon, although I'm not sure if there would be interest in that from the maintainers. |
2023, still an open issue, anyone have the solution yet? |
@marcoow any plans to add types? |
I don't think anyone on our side is currently planning to do this tbh but we'd be happy to merge a PR! |
Perhaps someone could PR in the Gavant types linked above? |
I have a much more robust set of types we've been using internally at CrowdStrike. |
PR open, feedback welcome 😃 |
Thanks for pinging the issue 👍 |
I'm trying to import this service:
So that I can use it as a type:
...according to the e-typescript documentation.
But TypeScript can't find the definitions. So, I was able to pull this in and have better luck:
https://github.com/Gavant/octane-bootcamp/blob/master/types/ember-simple-auth/services/session.d.ts
But, I'd hate for this file to fall out of sync to any changes across versions.
Separately, I know there's some churn on how to deal with Mixins, but we can at least type parts of the addon. Is there something I'm missing?
The text was updated successfully, but these errors were encountered: