Skip to content

Commit 9dc3384

Browse files
authored
Merge pull request #6 from rr-wfm/feature/internal-typings
Don't expose private types
2 parents c65ab3a + 3a8e2af commit 9dc3384

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ export type SingleSpaProps = {
99
};
1010

1111
export type SingleSpaAureliaFrameworkOptions = {
12-
getInstance: () => AureliaInstance;
13-
configure: (aurelia: AureliaInstance) => Promise<void>;
14-
bootstrap: (configure: (aurelia: AureliaInstance) => Promise<void>) => Promise<void>;
12+
getInstance: () => Aurelia;
13+
configure: (aurelia: Aurelia) => Promise<void>;
14+
bootstrap: (configure: (aurelia: Aurelia) => Promise<void>) => Promise<void>;
1515
component: string;
1616
debug: boolean;
1717
};
1818

19-
export type AureliaInstance = Merge<
19+
type AureliaInstance = Merge<
2020
Aurelia,
2121
{
2222
root: Controller;
@@ -78,7 +78,7 @@ const mount = async (options: SingleSpaAureliaFrameworkOptions, props: SingleSpa
7878
};
7979

8080
const unmount = async (options: SingleSpaAureliaFrameworkOptions, props: SingleSpaProps): Promise<void> => {
81-
const aurelia: AureliaInstance = options.getInstance();
81+
const aurelia: AureliaInstance = options.getInstance() as AureliaInstance;
8282

8383
aurelia.root.view.removeNodes();
8484
aurelia.root.detached();

0 commit comments

Comments
 (0)