File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { Manifest } from '@universal-ember/kolay-ui' ;
2
2
3
+ interface ResolveMap {
4
+ [ moduleName : string ] : ScopeMap ;
5
+ }
6
+
7
+ interface ScopeMap {
8
+ [ identifier : string ] : unknown ;
9
+ }
10
+
3
11
export function setupKolay (
4
12
context : object ,
5
13
options ?: {
@@ -14,15 +22,15 @@ export function setupKolay(
14
22
* - <APIDocs>
15
23
* - <ComponentSignature>
16
24
*/
17
- topLevelScope ?: Record < string , unknown > ;
25
+ topLevelScope ?: ScopeMap ;
18
26
19
27
/**
20
28
* Additional modules you'd like to be able to import from.
21
29
* This is in addition the the default modules provided by ember,
22
30
* and allows you to have access to private libraries without
23
31
* needing to publish those libraries to NPM.
24
32
*/
25
- resolve ?: Record < string , Record < string , unknown > > ;
33
+ resolve ?: { [ moduleName : string ] : Promise < ScopeMap > } ;
26
34
27
35
/**
28
36
* Provide additional remark plugins to the default markdown compiler.
Original file line number Diff line number Diff line change 1
1
import type { RouterDSL } from '@ember/-internals/routing' ;
2
2
3
- export function addRoutes ( context : RouterDSL ) : void {
3
+ export function addRoutes ( context : Pick < RouterDSL , 'route' > ) : void {
4
4
/**
5
5
* We need a level of nesting for every `/` in the URL so that we don't over-refresh / render the whole page
6
6
*/
You can’t perform that action at this time.
0 commit comments