I'm curious about the best approach for handling mixins in a typed Ember application. While removing mixins from the application is ideal, many addons do not yet support TypeScript. So, how can we effectively utilize Ember Simple Auth's application route mixin (or any other mixins)? Here's a code snippet that I haven't tested, but I think it should work, although it does feel a bit unusual:
import Route from '@ember/routing/route';
import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin';
export default class ApplicationRoute extends Route.extend(ApplicationRouteMixin, {
// Prototype Code Here?
}) {
// Class TS Code Here?
}
Once again, I haven't tried this and I'm just starting out with TypeScript, so any guidance and clarification would be welcome.