TranslatedMessage
TranslatedMessage<
T> =object& {data?:Record<string,string|number|Date>;type?:"regular"|never; } | {data?:never;formats?:never;type?:"raw"; } | {data?:Record<string,string|number|RichTagsFunction|Date>;type?:"rich"; } | {data?:Record<string,string|number|Date|MarkupTagsFunction>;type?:"markup"; }
Defined in: packages/sonner-next-intl/src/types.ts:77
Describes a translation-ready message used by a toast.
Type Declaration
Section titled “Type Declaration”formats?
Section titled “formats?”
optionalformats:Formats
Optional formatting rules.
key:
NamespacedMessageKeys<T>
Message key including namespace.
Type Parameters
Section titled “Type Parameters”T extends Record<string, any>
Messages map.