File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ export type SingleSpaProps = {
9
9
} ;
10
10
11
11
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 > ;
15
15
component : string ;
16
16
debug : boolean ;
17
17
} ;
18
18
19
- export type AureliaInstance = Merge <
19
+ type AureliaInstance = Merge <
20
20
Aurelia ,
21
21
{
22
22
root : Controller ;
@@ -78,7 +78,7 @@ const mount = async (options: SingleSpaAureliaFrameworkOptions, props: SingleSpa
78
78
} ;
79
79
80
80
const unmount = async ( options : SingleSpaAureliaFrameworkOptions , props : SingleSpaProps ) : Promise < void > => {
81
- const aurelia : AureliaInstance = options . getInstance ( ) ;
81
+ const aurelia : AureliaInstance = options . getInstance ( ) as AureliaInstance ;
82
82
83
83
aurelia . root . view . removeNodes ( ) ;
84
84
aurelia . root . detached ( ) ;
You can’t perform that action at this time.
0 commit comments