mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(): overlay create opts are optional
This commit is contained in:
@ -11,8 +11,9 @@ export class OverlayBaseController<Opts, Overlay> implements ControllerShape<Opt
|
|||||||
/**
|
/**
|
||||||
* Creates a new overlay
|
* Creates a new overlay
|
||||||
*/
|
*/
|
||||||
create(opts: Opts) {
|
create(opts?: Opts) {
|
||||||
return this.ctrl.create(opts);
|
// TODO: next major release opts is not optional
|
||||||
|
return this.ctrl.create((opts || {}) as any);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user