import { TemplateRef } from '@angular/core' ; import { Modal , ModalOpenContextBuilder , ModalOpenContext , FluentAssignMethod } from 'ngx-modialog' ; export class InAppModalContext extends ModalOpenContext { title : string ; templateRef : TemplateRef < any > ; normalize ( ) { if ( ! this . message ) this . message = '' ; } } export class InAppModalContextBuilder extends ModalOpenContextBuilder < InAppModalContext > { title : FluentAssignMethod < string , this > ; templateRef : FluentAssignMethod < TemplateRef < any > , this > ; constructor ( modal ) { super ( < any > { modal } , [ 'title' , 'templateRef' ] , < any > InAppModalContext ) ; } }