Skip to content

Add TypeScript strict mode and fix resulting type errors #174

Description

@Akatenvictor

What

Enable TypeScript strict mode in tsconfig.json and fix all resulting type errors to improve type safety across the codebase.

Why

Strict mode catches common type errors (null checks, implicit any, strict function types) that can cause runtime bugs. It's a best practice for production TypeScript.

Scope

In: Enable strict, strictNullChecks, noImplicitAny, fixAll resulting errors
Out: Strict property initialization, strict bind call apply

Acceptance Criteria

  • "strict": true in tsconfig.json
  • All type errors resolved
  • No @ts-ignore or @ts-expect-error added as workarounds
  • Proper null checks on all nullable values
  • No implicit any in function parameters
  • Build succeeds with strict mode

Technical Context

  • Update tsconfig.json
  • Fix errors incrementally (may be 50-100+ errors)
  • Use strictNullChecks first as it catches the most bugs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions