diff --git a/src/framework/theme/components/dialog/dialog.service.ts b/src/framework/theme/components/dialog/dialog.service.ts index a8fca7870d..04ac77f655 100644 --- a/src/framework/theme/components/dialog/dialog.service.ts +++ b/src/framework/theme/components/dialog/dialog.service.ts @@ -150,7 +150,8 @@ export class NbDialogService { /** * Opens new instance of the dialog, may receive optional config. * */ - open(content: Type | TemplateRef, userConfig: Partial> = {}): NbDialogRef { + open(content: Type | TemplateRef, + userConfig: Partial | string>> = {}): NbDialogRef { const config = new NbDialogConfig({ ...this.globalConfig, ...userConfig }); const overlayRef = this.createOverlay(config); const dialogRef = new NbDialogRef(overlayRef);