@@ -162,7 +162,7 @@ export class NavigationRoot {
162
162
/**
163
163
* Reset the app to a new layout
164
164
*/
165
- public setRoot ( layout : LayoutRoot ) : Promise < any > {
165
+ public setRoot ( layout : LayoutRoot ) : Promise < string > {
166
166
return this . commands . setRoot ( layout ) ;
167
167
}
168
168
@@ -190,71 +190,74 @@ export class NavigationRoot {
190
190
/**
191
191
* Show a screen as a modal.
192
192
*/
193
- public showModal < P > ( layout : Layout < P > ) : Promise < any > {
193
+ public showModal < P > ( layout : Layout < P > ) : Promise < string > {
194
194
return this . commands . showModal ( layout ) ;
195
195
}
196
196
197
197
/**
198
198
* Dismiss a modal by componentId. The dismissed modal can be anywhere in the stack.
199
199
*/
200
- public dismissModal ( componentId : string , mergeOptions ?: Options ) : Promise < any > {
200
+ public dismissModal ( componentId : string , mergeOptions ?: Options ) : Promise < string > {
201
201
return this . commands . dismissModal ( componentId , mergeOptions ) ;
202
202
}
203
203
204
204
/**
205
205
* Dismiss all Modals
206
206
*/
207
- public dismissAllModals ( mergeOptions ?: Options ) : Promise < any > {
207
+ public dismissAllModals ( mergeOptions ?: Options ) : Promise < string > {
208
208
return this . commands . dismissAllModals ( mergeOptions ) ;
209
209
}
210
210
211
211
/**
212
212
* Push a new layout into this screen's navigation stack.
213
213
*/
214
- public push < P > ( componentId : string , layout : Layout < P > ) : Promise < any > {
214
+ public push < P > ( componentId : string , layout : Layout < P > ) : Promise < string > {
215
215
return this . commands . push ( componentId , layout ) ;
216
216
}
217
217
218
218
/**
219
219
* Pop a component from the stack, regardless of it's position.
220
220
*/
221
- public pop ( componentId : string , mergeOptions ?: Options ) : Promise < any > {
221
+ public pop ( componentId : string , mergeOptions ?: Options ) : Promise < string > {
222
222
return this . commands . pop ( componentId , mergeOptions ) ;
223
223
}
224
224
225
225
/**
226
226
* Pop the stack to a given component
227
227
*/
228
- public popTo ( componentId : string , mergeOptions ?: Options ) : Promise < any > {
228
+ public popTo ( componentId : string , mergeOptions ?: Options ) : Promise < string > {
229
229
return this . commands . popTo ( componentId , mergeOptions ) ;
230
230
}
231
231
232
232
/**
233
233
* Pop the component's stack to root.
234
234
*/
235
- public popToRoot ( componentId : string , mergeOptions ?: Options ) : Promise < any > {
235
+ public popToRoot ( componentId : string , mergeOptions ?: Options ) : Promise < string > {
236
236
return this . commands . popToRoot ( componentId , mergeOptions ) ;
237
237
}
238
238
239
239
/**
240
240
* Sets new root component to stack.
241
241
*/
242
- public setStackRoot < P > ( componentId : string , layout : Layout < P > | Array < Layout < P > > ) : Promise < any > {
242
+ public setStackRoot < P > (
243
+ componentId : string ,
244
+ layout : Layout < P > | Array < Layout < P > >
245
+ ) : Promise < string > {
243
246
const children : Layout [ ] = isArray ( layout ) ? layout : [ layout ] ;
244
247
return this . commands . setStackRoot ( componentId , children ) ;
245
248
}
246
249
247
250
/**
248
251
* Show overlay on top of the entire app
249
252
*/
250
- public showOverlay < P > ( layout : Layout < P > ) : Promise < any > {
253
+ public showOverlay < P > ( layout : Layout < P > ) : Promise < string > {
251
254
return this . commands . showOverlay ( layout ) ;
252
255
}
253
256
254
257
/**
255
258
* dismiss overlay by componentId
256
259
*/
257
- public dismissOverlay ( componentId : string ) : Promise < any > {
260
+ public dismissOverlay ( componentId : string ) : Promise < string > {
258
261
return this . commands . dismissOverlay ( componentId ) ;
259
262
}
260
263
0 commit comments