Skip to content

tuiNotificationOptionsProvider throwing compiler errors #9525

Answered by waterplea
loxy asked this question in Q&A
Discussion options

You must be logged in to vote

Docs are outdated, alerts now have separate token object that depends on notification options:

export const TUI_ALERT_OPTIONS = tuiCreateTokenFromFactory<TuiAlertOptions>(() => ({
    ...TUI_ALERT_DEFAULT_OPTIONS,
    ...inject(TUI_NOTIFICATION_OPTIONS),
}));

I'll add helper function and update docs.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@loxy
Comment options

@waterplea
Comment options

Answer selected by loxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants