mirror of
https://github.com/getredash/redash.git
synced 2026-03-21 16:00:09 -04:00
20 lines
537 B
TypeScript
20 lines
537 B
TypeScript
import { NotificationApi, ArgsProps } from "antd/lib/notification";
|
|
|
|
export type NotificationConfig = Omit<ArgsProps, "message" | "description"> | null;
|
|
|
|
type NotificationFunction = (
|
|
message: ArgsProps["message"],
|
|
description?: ArgsProps["description"],
|
|
args?: NotificationConfig
|
|
) => void;
|
|
|
|
declare const notification: NotificationApi & {
|
|
success: NotificationFunction;
|
|
error: NotificationFunction;
|
|
info: NotificationFunction;
|
|
warning: NotificationFunction;
|
|
warn: NotificationFunction;
|
|
};
|
|
|
|
export default notification;
|