From 310e65999c5cdb1a8bd751a25f70e11cc8d7d308 Mon Sep 17 00:00:00 2001 From: KarimovDev Date: Tue, 28 Sep 2021 17:29:50 +0300 Subject: [PATCH] fix(app): implement review notes --- .../core/modules/notifications/notification-options.ts | 10 ++++------ projects/core/tokens/notification-options.ts | 6 ++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/projects/core/modules/notifications/notification-options.ts b/projects/core/modules/notifications/notification-options.ts index 46c395fcb4e31..73b197ffa0f9d 100644 --- a/projects/core/modules/notifications/notification-options.ts +++ b/projects/core/modules/notifications/notification-options.ts @@ -2,16 +2,14 @@ import {TuiContextWithImplicit} from '@taiga-ui/cdk'; import {TuiNotification} from '@taiga-ui/core/enums'; import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -export type TuiNotificationAutoClose = - | boolean - | number - | ((status: TuiNotification) => number | boolean); - export interface TuiNotificationOptions { readonly label?: PolymorpheusContent>; readonly status?: TuiNotification; readonly hasIcon?: boolean; - readonly autoClose?: TuiNotificationAutoClose; + readonly autoClose?: + | boolean + | number + | ((status: TuiNotification) => number | boolean); readonly hasCloseButton?: boolean; } diff --git a/projects/core/tokens/notification-options.ts b/projects/core/tokens/notification-options.ts index ed0c1f73fc4e7..435effacfe234 100644 --- a/projects/core/tokens/notification-options.ts +++ b/projects/core/tokens/notification-options.ts @@ -2,10 +2,12 @@ import {InjectionToken} from '@angular/core'; import {TuiContextWithImplicit} from '@taiga-ui/cdk'; import {TuiNotification} from '@taiga-ui/core/enums'; import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TuiNotificationAutoClose} from '../modules/notifications'; export interface NotificationTokenOptions { - readonly autoClose: TuiNotificationAutoClose; + readonly autoClose: + | boolean + | number + | ((status: TuiNotification) => number | boolean); readonly label: PolymorpheusContent>; readonly status: TuiNotification; readonly hasIcon: boolean;