are-message
Version:
This is a React global notification message component. It is a standalone implementation of the are-visual message component.
13 lines (10 loc) • 362 B
TypeScript
import { MessageOptions, MessageId, ForwardCallback } from './message-shape'
export interface MessageCloseFunc extends PromiseLike<unknown> {
(): () => void
}
export interface MessageRef {
add: (params: MessageOptions, callback?: ForwardCallback) => void
remove: (id: MessageId) => void
clear: () => void
createId: (value?: MessageId) => MessageId
}