Enode — API Reference
    Preparing search index...
    toast: {
        dismiss: (id: number) => void;
        error: (message: string, opts?: ToastOptions) => number;
        info: (message: string, opts?: ToastOptions) => number;
        success: (message: string, opts?: ToastOptions) => number;
        warning: (message: string, opts?: ToastOptions) => number;
    } = ...

    Imperative toast API. message MUST already be resolved/translated by the caller (the store runs outside React). Returns the toast id for manual dismissal.

    Type Declaration

    • dismiss: (id: number) => void
    • error: (message: string, opts?: ToastOptions) => number
    • info: (message: string, opts?: ToastOptions) => number
    • success: (message: string, opts?: ToastOptions) => number
    • warning: (message: string, opts?: ToastOptions) => number