import { Type } from '@angular/core' ; export class HsDialogItem { resolve : ( value ? : unknown ) => void ; reject : ( reason ? : any ) => void ; waitResult ( ) { const promise = new Promise ( ( resolve , reject ) => { this . resolve = resolve ; this . reject = reject ; } ) ; return promise ; } constructor ( public component , public data ) { } }