Skip to content

Commit

Permalink
Update types for the setup util
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jun 18, 2024
1 parent ffd90b3 commit 4596844
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/browser/virtual/setup.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import type { Manifest } from '@universal-ember/kolay-ui';

interface ResolveMap {
[moduleName: string]: ScopeMap;
}

interface ScopeMap {
[identifier: string]: unknown;
}

export function setupKolay(
context: object,
options?: {
Expand All @@ -14,15 +22,15 @@ export function setupKolay(
* - <APIDocs>
* - <ComponentSignature>
*/
topLevelScope?: Record<string, unknown>;
topLevelScope?: ScopeMap;

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

/**
* Provide additional remark plugins to the default markdown compiler.
Expand Down

0 comments on commit 4596844

Please sign in to comment.