ember-cli-flash icon indicating copy to clipboard operation
ember-cli-flash copied to clipboard

Convert to typescript & octane

Open vlascik opened this issue 2 years ago • 1 comments

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.

vlascik avatar Feb 06 '23 07:02 vlascik

@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.

RobbieTheWagner avatar Feb 20 '23 14:02 RobbieTheWagner

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

NullVoxPopuli avatar Mar 08 '24 13:03 NullVoxPopuli

@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.

vlascik avatar Mar 08 '24 15:03 vlascik

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

Yes, but everything has type declarations now! 🎉

NullVoxPopuli avatar Mar 09 '24 13:03 NullVoxPopuli