Skip to content

Commit

Permalink
[semantic-ui-form] Update API for jQuery Events API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard-thieu committed Nov 24, 2018
1 parent 8914a46 commit e1d3c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/semantic-ui-form/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ declare namespace SemanticUI {
/**
* Callback if a form is all valid
*/
onSuccess(this: JQuery, event: JQuery.Event<HTMLElement>, fields: any): void;
onSuccess(this: JQuery, event: JQuery.TriggeredEvent<HTMLElement>, fields: any): void;
/**
* Callback if any form field is invalid
*/
Expand Down
2 changes: 1 addition & 1 deletion types/semantic-ui-form/semantic-ui-form-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function test_form() {
},
onSuccess(event, fields) {
this; // $ExpectType JQuery<HTMLElement>
event; // $ExpectType Event<HTMLElement, null>
event; // $ExpectType TriggeredEvent<HTMLElement, any, any, any>
fields; // $ExpectType any
},
onFailure(formErrors, fields) {
Expand Down

0 comments on commit e1d3c4a

Please sign in to comment.