From 1daa4a0f19f3c0a04c13f0a6259a6b01b3eef82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=A7=E8=A1=A1?= Date: Mon, 18 Dec 2017 22:32:58 +0800 Subject: [PATCH] fix(module:modal): fix modal type error --- src/components/modal/nz-modal-subject.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/modal/nz-modal-subject.service.ts b/src/components/modal/nz-modal-subject.service.ts index 9c5e564849f..b648584c7a4 100644 --- a/src/components/modal/nz-modal-subject.service.ts +++ b/src/components/modal/nz-modal-subject.service.ts @@ -13,11 +13,13 @@ const enum modalEvent { } @Injectable() -export class NzModalSubject extends Subject { +/* tslint:disable-next-line:no-any */ +export class NzModalSubject extends Subject { modalId: string; eventsQueue = {}; - destroy(type: string = 'onCancel'): void { + /* tslint:disable-next-line:no-any */ + destroy(type: any = 'onCancel'): void { if (!this.isStopped && !this.closed) { this.next(type); }