Variable SnsEnvelopeConst
SnsEnvelope: { parse<T extends ZodType>(data: unknown, schema: T): TypeOf<T>[]; safeParse<T extends ZodType>( data: unknown, schema: T, ): ParsedResult<unknown, TypeOf<T>[]>;} = ... Type declaration
parse:function
- parse<T extends ZodType>(data: unknown, schema: T): TypeOf<T>[]
Returns TypeOf<T>[]
safeParse:function
SNS Envelope to extract array of Records
The record's body parameter is a string, though it can also be a JSON encoded string. Regardless of its type it'll be parsed into a BaseModel object.
Note: Records will be parsed the same way so if model is str, all items in the list will be parsed as str and npt as JSON (and vice versa)