Skip to content

Commit abfe10e

Browse files
fix: emit listeners with no params explicitly
1 parent 5bd6478 commit abfe10e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/module-declaration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const generateModuleDeclaration = (
100100
);
101101
let listener = 'Function';
102102

103-
if (moduleEvent.parameters && moduleEvent.parameters.length) {
103+
if (moduleEvent.parameters) {
104104
const args: string[] = [];
105105
const indent = _.repeat(' ', moduleEvent.name.length + 29);
106106

0 commit comments

Comments
 (0)