Skip to content

Add TypeScript typechecking#77

Merged
marcochavezf merged 3 commits into
mainfrom
rory-peer-review-02a-typecheck
Jul 3, 2026
Merged

Add TypeScript typechecking#77
marcochavezf merged 3 commits into
mainfrom
rory-peer-review-02a-typecheck

Conversation

@roryabraham

@roryabraham roryabraham commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Details

Adds tsgo-based TypeScript typechecking (tsconfig.json + typecheck npm script + .github/workflows/typecheck.yml).

Related Issues

https://github.com/Expensify/Expensify/issues/636197

Manual Tests

  1. Run cd GitHub-Actions && nvm use && npm install.
  2. Run npm run typecheck.
  3. Confirm it passes with no errors (verified locally).

Linked PRs

N/A

Phase 2a of the #64 split: adds tsgo-based typechecking so later
phases (ESLint, tests, real peer-review logic) can build on a
type-checked baseline.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham roryabraham changed the title Add TypeScript typechecking (Phase 2a of #64 split) Add TypeScript typechecking Jul 3, 2026
Pin the latest tsgo preview so typechecking uses the current native
TypeScript compiler build.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham roryabraham requested a review from marcochavezf July 3, 2026 04:17
@roryabraham roryabraham marked this pull request as ready for review July 3, 2026 04:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 677ded40ab

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/typecheck.yml
Comment thread package.json
"expensify-common": "2.0.189"
},
"devDependencies": {
"@types/node": "^25.9.4",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match Node types to the runtime version

This repo's .nvmrc pins the workflow/runtime to Node 24, but the new typecheck dependency pulls Node 25 ambient types. If a future script uses a Node 25-only API, CI typechecking will pass even though the script can fail under the Node 24 version installed by setup-node; pin @types/node to the Node 24 line so the check reflects the actual runtime.

Useful? React with 👍 / 👎.

The previous filter only matched .ts/.mts/.cts, missing plain JS files.

Co-authored-by: Cursor <cursoragent@cursor.com>
@marcochavezf marcochavezf merged commit 37b8de3 into main Jul 3, 2026
5 checks passed
@marcochavezf marcochavezf deleted the rory-peer-review-02a-typecheck branch July 3, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants