Skip to content

Commit

Permalink
Merge pull request #74 from universal-ember/fix-types
Browse files Browse the repository at this point in the history
Fix types
  • Loading branch information
NullVoxPopuli committed Jun 18, 2024
2 parents b2b7010 + 4596844 commit 3b988d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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
2 changes: 1 addition & 1 deletion ui/src/router.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { RouterDSL } from '@ember/-internals/routing';

export function addRoutes(context: RouterDSL): void {
export function addRoutes(context: Pick<RouterDSL, 'route'>): void {
/**
* We need a level of nesting for every `/` in the URL so that we don't over-refresh / render the whole page
*/
Expand Down

0 comments on commit 3b988d4

Please sign in to comment.