|
@@ -164,7 +164,7 @@ export class NavigationRoot {
|
164
|
164
|
/**
|
165
|
165
|
* Sets new root component to stack.
|
166
|
166
|
*/
|
167
|
|
- public setStackRoot(componentId: string, layout: Layout | Layout[]): Promise<any> {
|
|
167
|
+ public setStackRoot<P>(componentId: string, layout: Layout<P> | Array<Layout<P>>): Promise<any> {
|
168
|
168
|
const children: Layout[] = isArray(layout) ? layout : [layout];
|
169
|
169
|
return this.commands.setStackRoot(componentId, children);
|
170
|
170
|
}
|
|
@@ -172,7 +172,7 @@ export class NavigationRoot {
|
172
|
172
|
/**
|
173
|
173
|
* Show overlay on top of the entire app
|
174
|
174
|
*/
|
175
|
|
- public showOverlay(layout: Layout): Promise<any> {
|
|
175
|
+ public showOverlay<P>(layout: Layout<P>): Promise<any> {
|
176
|
176
|
return this.commands.showOverlay(layout);
|
177
|
177
|
}
|
178
|
178
|
|