Skip to content

Commit

Permalink
Add temp JSDoc to the function
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester committed Nov 5, 2024
1 parent 72489e8 commit 9c34fcf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/contact-summary/contact-summary-emitter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**
* @param contactSummary {{
* fields: {
* appliesToType: string[] | undefined,
* appliesIf: () => boolean | undefined,
* }[] | undefined,
* context: object | undefined,
* cards: {
* appliesToType: string[] | undefined,
* appliesIf: (report: object) => boolean | boolean | undefined,
* }[] | undefined,
* }}
* @param contact {object}
* @param reports {object[]}
* @returns {{cards: object[], fields: object[]}}
*/
function emitter(contactSummary, contact, reports) {
var fields = contactSummary.fields || [];
var context = contactSummary.context || {};
Expand Down

0 comments on commit 9c34fcf

Please sign in to comment.