Skip to content

Commit

Permalink
Remove type hacks since @embroider/virtual now has types
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 4, 2024
1 parent 1b6a9fb commit e5f5a37
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions files-override/ts/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import Application from '@ember/application';
// @ts-expect-error - TODO: add types to compatModules
import compatModules from '@embroider/core/entrypoint';
import compatModules from '@embroider/virtual/entrypoint';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';

export default class App extends Application {
modulePrefix = config.modulePrefix;
podModulePrefix = config.podModulePrefix;
// TODO: remove lint disable when we have types for compatModules
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
Resolver = Resolver.withModules(compatModules);
}

// TODO: remove lint disable when we have types for compatModules
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
loadInitializers(App, config.modulePrefix, compatModules);

0 comments on commit e5f5a37

Please sign in to comment.