UNPKG

notiwind

Version:

A headless Vue 3 notification library to use with Tailwind CSS.

6 lines (4 loc) 362 B
import { Notification, NotificationSchema } from './types'; type UserNotification<T extends NotificationSchema> = Omit<Notification<T>, 'id' | 'group'> & Partial<Pick<Notification<T>, 'group'>>; declare const createNotifier: <T extends NotificationSchema>() => (notification: UserNotification<T>, timeout?: number) => () => void; export default createNotifier;