Skip to content

frontend: strict TypeScript & typed API models for cauweb #137

Description

@ayushkrtiwari

Goal

Tighten TypeScript to avoid runtime data shape issues and improve DX when consuming backend APIs.

Tasks

  • Enable strict in tsconfig.json and fix resulting typing errors.
  • Add generated types for API schemas (openapi/codegen or manual interfaces).
  • Use zod/io-ts validators at boundaries to validate runtime data and return typed objects.
  • Add CI step that runs tsc --noEmit to ensure type correctness.

Acceptance criteria

  • npm run typecheck passes in CI and runtime schema mismatches are caught early.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Semver:patchRepresents bug fixes in subversionsType:Mediumjunior developers talks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions