Skip to content

Commit 6225618

Browse files
committed
Added documentation for the function
1 parent 1113c91 commit 6225618

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/batch/src/BatchProcessor.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ class BatchProcessor extends BasePartialBatchProcessor {
139139
);
140140
}
141141

142+
/**
143+
* Parse the record according to the schema passed.
144+
*
145+
* If the schema is not provided, it returns the record as is.
146+
*
147+
* @param record The record to be parsed
148+
* @param eventType The type of event to process
149+
* @param schema The StandardSchema to be used for parsing
150+
*/
142151
public async parseRecord(
143152
record: EventSourceDataClassTypes,
144153
eventType: keyof typeof EventType,

0 commit comments

Comments
 (0)