diff --git a/projects/core/modules/notifications/notification-options.ts b/projects/core/modules/notifications/notification-options.ts index 46c395fcb4e3..73b197ffa0f9 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 ed0c1f73fc4e..435effacfe23 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;