Skip to content

Commit

Permalink
chore: Latest work
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed May 16, 2024
1 parent 2730b20 commit 3d3a657
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 231 deletions.
4 changes: 2 additions & 2 deletions languages/javascript/templates/declarations/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @param {Function} callback
${if.deprecated} * @deprecated ${method.deprecation}
${end.if.deprecated} */
function listen(event: '${event.name}'${if.context}, ${event.signature.params}${end.if.context}, callback: (data: ${method.result.type}) => void): Promise<number>
function listen(event: '${event.name}'${if.context}, ${event.signature.params}${end.if.context}, callback: (data: ${notifier.value.type}) => void): Promise<number>

/**
* ${method.summary}
Expand All @@ -15,4 +15,4 @@ ${end.if.deprecated} */
* @param {Function} callback
${if.deprecated} * @deprecated ${method.deprecation}
${end.if.deprecated} */
function once(event: '${event.name}'${if.context}, ${event.signature.params}${end.if.context}, callback: (data: ${method.result.type}) => void): Promise<number>
function once(event: '${event.name}'${if.context}, ${event.signature.params}${end.if.context}, callback: (data: ${notifier.value.type}) => void): Promise<number>
Loading

0 comments on commit 3d3a657

Please sign in to comment.