mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): typings for showModal correction (#9374)
This commit is contained in:
4
packages/core/ui/core/view-base/index.d.ts
vendored
4
packages/core/ui/core/view-base/index.d.ts
vendored
@@ -187,14 +187,14 @@ export abstract class ViewBase extends Observable {
|
||||
* @param moduleName - The name of the module to load starting from the application root.
|
||||
* @param modalOptions - A ShowModalOptions instance
|
||||
*/
|
||||
showModal(moduleName: string, modalOptions: ShowModalOptions): ViewBase;
|
||||
showModal(moduleName: string, modalOptions?: ShowModalOptions): ViewBase;
|
||||
|
||||
/**
|
||||
* Shows the view passed as parameter as a modal view.
|
||||
* @param view - View instance to be shown modally.
|
||||
* @param modalOptions - A ShowModalOptions instance
|
||||
*/
|
||||
showModal(view: ViewBase, modalOptions: ShowModalOptions): ViewBase;
|
||||
showModal(view: ViewBase, modalOptions?: ShowModalOptions): ViewBase;
|
||||
|
||||
/**
|
||||
* Closes the current modal view that this page is showing.
|
||||
|
||||
Reference in New Issue
Block a user