fix(angular): overlay.getTop can return undefined (#17802)

This commit is contained in:
Pierric Cistac
2019-03-21 13:07:08 -04:00
committed by Mike Hartington
parent 27168d938a
commit 439b10e10d

View File

@ -20,7 +20,7 @@ export class OverlayBaseController<Opts, Overlay> {
/** /**
* Returns the top overlay. * Returns the top overlay.
*/ */
getTop(): Promise<Overlay> { getTop(): Promise<Overlay | undefined> {
return proxyMethod(this.ctrl, this.doc, 'getTop'); return proxyMethod(this.ctrl, this.doc, 'getTop');
} }
} }