Skip to content

Commit 4596844

Browse files
committed
Update types for the setup util
1 parent ffd90b3 commit 4596844

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/browser/virtual/setup.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import type { Manifest } from '@universal-ember/kolay-ui';
22

3+
interface ResolveMap {
4+
[moduleName: string]: ScopeMap;
5+
}
6+
7+
interface ScopeMap {
8+
[identifier: string]: unknown;
9+
}
10+
311
export function setupKolay(
412
context: object,
513
options?: {
@@ -14,15 +22,15 @@ export function setupKolay(
1422
* - <APIDocs>
1523
* - <ComponentSignature>
1624
*/
17-
topLevelScope?: Record<string, unknown>;
25+
topLevelScope?: ScopeMap;
1826

1927
/**
2028
* Additional modules you'd like to be able to import from.
2129
* This is in addition the the default modules provided by ember,
2230
* and allows you to have access to private libraries without
2331
* needing to publish those libraries to NPM.
2432
*/
25-
resolve?: Record<string, Record<string, unknown>>;
33+
resolve?: { [moduleName: string]: Promise<ScopeMap> };
2634

2735
/**
2836
* Provide additional remark plugins to the default markdown compiler.

0 commit comments

Comments
 (0)