Typed event source handler.

  • Type Parameters

    • TSchema extends ZodType<any, ZodTypeDef, any>

    Parameters

    • type: string
    • schema: TSchema
    • handler: ((data) => void)
        • (data): void
        • Handler to handle the event when schema is successfully parsed.

          Parameters

          Returns void

    Returns Handler<TSchema>