Skip to content

Commit c20a10f

Browse files
committed
squash: add jsdoc to the cloneWith function
Signed-off-by: Lucas Holmquist <[email protected]>
1 parent d34158e commit c20a10f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/event/cloudevent.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ export class CloudEvent implements CloudEventV1, CloudEventV03 {
170170
}
171171
}
172172

173+
/**
174+
* Clone a CloudEvent with new/update attributes
175+
* @param {object} options attributes to augment the CloudEvent with
176+
* @throws if the CloudEvent does not conform to the schema
177+
* @return {CloudEvent} returns a new CloudEvent
178+
*/
173179
public cloneWith(
174180
options:
175181
| CloudEventV1

0 commit comments

Comments
 (0)