Skip to content

Commit 0106287

Browse files
author
kyvg
committed
3.4.0
1 parent 1b9d088 commit 0106287

File tree

5 files changed

+154
-215
lines changed

5 files changed

+154
-215
lines changed

dist/index.d.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ComponentOptionsMixin } from 'vue';
2+
import { ComponentProvideOptions } from 'vue';
23
import { DefineComponent } from 'vue';
34
import { ExtractPropTypes } from 'vue';
45
import { HTMLAttributes } from 'vue';
@@ -16,7 +17,7 @@ export declare type NotificationItem = Pick<NotificationsOptions, 'id' | 'title'
1617
duplicates: number;
1718
};
1819

19-
export declare const Notifications: DefineComponent< {
20+
export declare const Notifications: DefineComponent<ExtractPropTypes< {
2021
group: {
2122
type: StringConstructor;
2223
default: string;
@@ -97,7 +98,7 @@ dangerouslySetInnerHtml: {
9798
type: BooleanConstructor;
9899
default: boolean;
99100
};
100-
}, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
101+
}>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
101102
click: (item: NotificationItem) => true;
102103
destroy: (item: NotificationItem) => true;
103104
start: (item: NotificationItem) => true;
@@ -182,18 +183,18 @@ dangerouslySetInnerHtml: {
182183
type: BooleanConstructor;
183184
default: boolean;
184185
};
185-
}>> & {
186+
}>> & Readonly<{
186187
onClick?: ((item: NotificationItem) => any) | undefined;
187188
onDestroy?: ((item: NotificationItem) => any) | undefined;
188189
onStart?: ((item: NotificationItem) => any) | undefined;
189-
}, {
190+
}>, {
190191
speed: number;
191192
group: string;
192193
duration: number;
193194
ignoreDuplicates: boolean;
194195
closeOnClick: boolean;
195-
reverse: boolean;
196196
width: string | number;
197+
reverse: boolean;
197198
position: string | string[];
198199
classes: string | string[];
199200
animationType: "css" | "velocity";
@@ -209,7 +210,7 @@ class: HTMLAttributes["class"];
209210
item: NotificationItem;
210211
close: () => void;
211212
}) => any;
212-
}>>;
213+
}>, {}, {}, string, ComponentProvideOptions, true, {}, any>;
213214

214215
export declare interface NotificationsOptions {
215216
id?: number;

0 commit comments

Comments
 (0)