Skip to content

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

@ayushkrtiwari

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.

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