Skip to content

Commit ec89ac5

Browse files
authored
Merge pull request #461 from AndrewJDR/add_onClick_to_typescript_definition
Add onClick event to typescript definition file.
2 parents 0d608a2 + 753291f commit ec89ac5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ declare namespace Noty {
7575
type Type = 'alert' | 'success' | 'warning' | 'error' | 'info' | 'information';
7676
type Theme = 'mint' | 'sunset' | 'relax' | 'metroui' | 'bootstrap-v3' | 'bootstrap-v4' | 'semanticui' | 'nest';
7777
type Layout = 'top' | 'topLeft' | 'topCenter' | 'topRight' | 'center' | 'centerLeft' | 'centerRight' | 'bottom' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
78-
type Event = 'beforeShow' | 'onShow' | 'afterShow' | 'onClose' | 'afterClose' | 'onHover' | 'onTemplate';
78+
type Event = 'beforeShow' | 'onShow' | 'afterShow' | 'onClose' | 'afterClose' | 'onHover' | 'onTemplate' | 'onClick';
7979

8080
interface Button {
8181
new(text: string, classNames: string, cb: Function, attributes: any) : Noty.Button
@@ -106,7 +106,8 @@ declare namespace Noty {
106106
onClose?: () => void,
107107
afterClose?: () => void,
108108
onHover?: () => void,
109-
onTemplate?: () => void
109+
onTemplate?: () => void,
110+
onClick?: () => void
110111
};
111112
sounds?: {
112113
sources?: string[],

0 commit comments

Comments
 (0)