Skip to content

Commit

Permalink
fix: Declare type for DisableTimeOut configuration. (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilt authored Nov 14, 2022
1 parent 1a0f6b8 commit 7dc1745
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/toastr/toastr-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ComponentType } from '../portal/portal';
import { ToastRef } from './toast-ref';

export type ProgressAnimationType = 'increasing' | 'decreasing';
export type DisableTimoutType = boolean | 'timeOut' | 'extendedTimeOut';

/**
* Configuration for an individual toast.
Expand All @@ -15,7 +16,7 @@ export interface IndividualConfig {
* disable both timeOut and extendedTimeOut
* default: false
*/
disableTimeOut: boolean | 'timeOut' | 'extendedTimeOut';
disableTimeOut: DisableTimoutType;
/**
* toast time to live in milliseconds
* default: 5000
Expand Down

0 comments on commit 7dc1745

Please sign in to comment.