Skip to content

Commit cb1facc

Browse files
committed
Bug fixes: noty constructor typo, NotyOptions property timeout had bool instead of number type
1 parent 12d8118 commit cb1facc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jquery.noty/jquery.noty.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface NotyOptions {
1313
dismissQueue?: bool;
1414
template?: string;
1515
animation?: NotyAnimationOptions;
16-
timeout?: bool;
16+
timeout?: number;
1717
force?: bool;
1818
modal?: bool;
1919
closeWith?: Array;
@@ -37,7 +37,7 @@ interface NotyCallbackOptions {
3737

3838
interface NotyStatic {
3939

40-
(NotyOptions?);
40+
(notyOptions: NotyOptions);
4141

4242
get(id: any);
4343
close(id: any);
@@ -54,7 +54,7 @@ interface JQueryStatic {
5454

5555
declare var noty: {
5656

57-
(NotyOptions?);
57+
(notyOptions: NotyOptions);
5858

5959
show();
6060
close();

0 commit comments

Comments
 (0)