are-message
Version:
This is a React global notification message component. It is a standalone implementation of the are-visual message component.
7 lines (6 loc) • 439 B
TypeScript
import { ContentOrOptions } from '../types/api-shape';
import { MessageRef } from '../types/message-ref';
import { MessageOptions, PropsWithMsgKey } from '../types/message-shape';
declare type OtherOptions = Omit<MessageOptions, 'content' | 'duration'>;
declare function createOptions(instance: MessageRef, value: ContentOrOptions, duration?: number, options?: OtherOptions): PropsWithMsgKey<MessageOptions>;
export default createOptions;