Skip to content

Commit

Permalink
add type params on mw.hook, disable dtslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Dec 11, 2023
1 parent 774c178 commit 99f265d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mw/hook.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ declare global {
* @member mw
* @see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.hook
*/
function hook(event: string): Hook;
function hook<T extends any[] = any[]>(event: string): Hook<T>;
}
}

Expand Down
3 changes: 2 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"no-padding": false,
"no-unnecessary-qualifier": false,
"unified-signatures": false,
"no-redundant-jsdoc": false
"no-redundant-jsdoc": false,
"no-unnecessary-generics": false
}
}

0 comments on commit 99f265d

Please sign in to comment.