Skip to content

Type the webhook body parameters with proper TypeScript interfaces or Zod schemas #156

@coderabbitai

Description

@coderabbitai

Context

During review of PR #154, it was identified that webhook handler functions use any type for their body parameters, which bypasses TypeScript's type checking.

Request

Refactor webhook body handling to use proper TypeScript types or Zod schemas with type guards for validation. This should cover all webhook handler functions in the codebase, particularly in src/app/api/webhook/route.ts.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🎫 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions