-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.ts
More file actions
34 lines (30 loc) · 934 Bytes
/
index.ts
File metadata and controls
34 lines (30 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import EmberApplication from '@ember/application';
import { StrictResolver } from './strict-resolver.ts';
export default class EmberApp extends EmberApplication {
Resolver = {
create: ({
namespace,
}: {
namespace: {
modules: Record<string, unknown>;
plurals?: Record<string, string>;
};
}) => {
const resolver = new StrictResolver(namespace.modules, namespace.plurals);
return resolver;
},
};
/**
Set this to opt-in to using a strict resolver that will only return the
given set of ES modules. The names of the modules should all be relative to
the root of the app and start with "./"
@property modules
@public
*/
declare modules?: {
[modulePath: string]: unknown;
};
// TODO: I don't think I really want to add this, but I also don't want to
// keep legacy pluralization baked in.
declare plurals?: Record<string, string>;
}