API Reference
    Preparing search index...

    Type Alias ParserOptions<TSchema, TEnvelope, TSafeParse>

    Options for the parser used in middy middleware and decorator

    type ParserOptions<
        TSchema extends ZodSchema,
        TEnvelope extends Envelope,
        TSafeParse extends boolean,
    > = {
        envelope?: TEnvelope;
        safeParse?: TSafeParse;
        schema: TSchema;
    }

    Type Parameters

    • TSchema extends ZodSchema
    • TEnvelope extends Envelope
    • TSafeParse extends boolean
    Index

    Properties

    envelope?: TEnvelope
    safeParse?: TSafeParse
    schema: TSchema