Skip to content

Commit

Permalink
3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kyvg committed Oct 7, 2024
1 parent 1b9d088 commit 0106287
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 215 deletions.
13 changes: 7 additions & 6 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ComponentOptionsMixin } from 'vue';
import { ComponentProvideOptions } from 'vue';
import { DefineComponent } from 'vue';
import { ExtractPropTypes } from 'vue';
import { HTMLAttributes } from 'vue';
Expand All @@ -16,7 +17,7 @@ export declare type NotificationItem = Pick<NotificationsOptions, 'id' | 'title'
duplicates: number;
};

export declare const Notifications: DefineComponent< {
export declare const Notifications: DefineComponent<ExtractPropTypes< {
group: {
type: StringConstructor;
default: string;
Expand Down Expand Up @@ -97,7 +98,7 @@ dangerouslySetInnerHtml: {
type: BooleanConstructor;
default: boolean;
};
}, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
}>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
click: (item: NotificationItem) => true;
destroy: (item: NotificationItem) => true;
start: (item: NotificationItem) => true;
Expand Down Expand Up @@ -182,18 +183,18 @@ dangerouslySetInnerHtml: {
type: BooleanConstructor;
default: boolean;
};
}>> & {
}>> & Readonly<{
onClick?: ((item: NotificationItem) => any) | undefined;
onDestroy?: ((item: NotificationItem) => any) | undefined;
onStart?: ((item: NotificationItem) => any) | undefined;
}, {
}>, {
speed: number;
group: string;
duration: number;
ignoreDuplicates: boolean;
closeOnClick: boolean;
reverse: boolean;
width: string | number;
reverse: boolean;
position: string | string[];
classes: string | string[];
animationType: "css" | "velocity";
Expand All @@ -209,7 +210,7 @@ class: HTMLAttributes["class"];
item: NotificationItem;
close: () => void;
}) => any;
}>>;
}>, {}, {}, string, ComponentProvideOptions, true, {}, any>;

export declare interface NotificationsOptions {
id?: number;
Expand Down
Loading

0 comments on commit 0106287

Please sign in to comment.