/** @odoo-module */
import {Notification} from "@web/core/notifications/notification";
import {patch} from "@web/core/utils/patch";

patch(Notification.prototype, {
    type: {
        type: String,
        optional: true,
        validate: (t) =>
            ["warning", "danger", "success", "info", "default"].includes(t),
    },
});
