UNPKG

notiwind

Version:

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

13 lines (12 loc) 375 B
export type NotificationSchema = Record<string, unknown>; export type Notification<T extends NotificationSchema = NotificationSchema> = { id: number; group: string; } & T; export type Context = { group?: string; position?: 'top' | 'bottom'; }; export type ExtractComponentProps<TComponent> = TComponent extends new () => { $props: infer P; } ? P : never;