UNPKG

@material-git/all

Version:
21 lines (20 loc) 743 B
import { OverlayRef } from '../core'; import { Observable } from 'rxjs/Observable'; /** * Reference to a dialog opened via the MdDialog service. */ export declare class MdDialogRef<T> { private _overlayRef; /** The instance of component opened into the dialog. */ componentInstance: T; /** Subject for notifying the user that the dialog has finished closing. */ private _afterClosed; constructor(_overlayRef: OverlayRef); /** * Close the dialog. * @param dialogResult Optional result to return to the dialog opener. */ close(dialogResult?: any): void; /** Gets an observable that is notified when the dialog is finished closing. */ afterClosed(): Observable<any>; }