You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/batch/src/parser.ts
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ import { ParsingError } from './errors.js';
5
5
importtype{
6
6
BatchProcessorConfig,
7
7
EventSourceDataClassTypes,
8
-
RuntimeZodType,
9
8
}from'./types.js';
10
9
11
10
/**
@@ -14,15 +13,17 @@ import type {
14
13
* If `useTransformers` is true, extend using opinionated transformers.
15
14
* Otherwise, extend without any transformers.
16
15
*
16
+
* The vendor is already checked at runtime to ensure Zod is being used when required using `StandardSchemaV1['~standard'].vendor`.
17
+
*
17
18
* @param options - The options for creating the extended schema
18
19
* @param options.eventType - The type of event to process (SQS, Kinesis, DynamoDB)
19
-
* @param options.schema - The StandardSchema to be used for parsing
20
+
* @param options.innerSchema - The StandardSchema to be used for parsing. To avoid forcing a direct dependency on Zod, we use `unknown` here, which is not ideal but necessary.
20
21
* @param options.useTransformers - Whether to use transformers for parsing
21
22
* @param options.logger - A logger instance for logging
0 commit comments