Skip to content

Commit

Permalink
fix: emit listeners with no params explicitly (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Aug 8, 2024
1 parent 5bd6478 commit 988dfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module-declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const generateModuleDeclaration = (
);
let listener = 'Function';

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

Expand Down

0 comments on commit 988dfd3

Please sign in to comment.