Closed vlascik closed 4 months ago
@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.
Gonna close this since the package is now a v2 addon! thanks @vlascik your work inspired the work that did landed!
@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.
As far as I can tell the addon is still in JS.
Yes, but everything has type declarations now! 🎉
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()
vsconstructor
timing, and the API will be changed (FlashObjects will have to be created withnew
, instead ofEmberObject.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.