PromoCursed/node_modules/antd/lib/notification/useNotification.d.ts

9 lines
512 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import React from 'react';
import type { NotificationConfig, NotificationInstance } from './interface';
type HolderProps = NotificationConfig & {
onAllRemoved?: VoidFunction;
};
export declare function useInternalNotification(notificationConfig?: HolderProps): readonly [NotificationInstance, React.ReactElement];
export default function useNotification(notificationConfig?: NotificationConfig): readonly [NotificationInstance, React.ReactElement<any, string | React.JSXElementConstructor<any>>];
export {};