Skip to content

JavaScript static type errors #5878

@leotm

Description

@leotm

Description

Follow-up to: Slack convo linked below
Fix our current 18 JS static type errors detected running our TypeScript compiler

Screenshots

screenshot_2023-03-01_at_10 57 25-2

To Reproduce

yarn tsc # locally
tsc # globally, nb: if installed, likely a diff ver so results may vary

Expected behavior

No JS type errors

Technical Details

Currently we rely on IDE's (e.g. VSCode) to flag type errors during development and bump into these in runtime

JavaScript and JSX files cannot parse types (yet, see 2 refs below)

Next: Address remaining TypeScript errors

References


Severity

  • Is this tech debt? ✅

cc @Cal-L @gantunesr

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions