Skip to content
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 typescript & octane #390

Closed
wants to merge 6 commits into from

Conversation

vlascik
Copy link
Contributor

@vlascik vlascik commented Feb 6, 2023

PR rewrites as much as possible to TS & Octane.

There are some TSC/ESLint errors due to FlashObject still extending EmberObject. Not sure what to do about these - if the object is rewritten as an ES6 class, subtle bugs are going to appear due to init() vs constructor timing, and the API will be changed (FlashObjects will have to be created with new, instead of EmberObject.create().

I'm not entirely sure if users of this addon actually create FlashObjects on their own though - if not, and the only usage is through FlassMessages service, the change could be done and tests rewritten without much disruption to consumers.

@RobbieTheWagner
Copy link
Member

@vlascik thanks for taking on this work! It is long overdue. I would recommend ignoring lint issues for now. It would be good to get these tests running and see if everything is passing.

@vlascik vlascik mentioned this pull request Jan 9, 2024
8 tasks
@NullVoxPopuli
Copy link
Contributor

Gonna close this since the package is now a v2 addon! thanks @vlascik your work inspired the work that did landed!

@vlascik
Copy link
Contributor Author

vlascik commented Mar 8, 2024

@NullVoxPopuli you know the point of this PR was to turn the code into Typescript, not v2 addon though, right?

As far as I can tell the addon is still in JS.

@NullVoxPopuli
Copy link
Contributor

As far as I can tell the addon is still in JS.

Yes, but everything has type declarations now! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants