lyft/react-javascript-to-typescript-transform
Convert React JavaScript code to TypeScript with proper typing observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3360
- days_rel: n/a
- days_push: 2539
- n_releases_24m: 0
Adoption not part of the score
1565 stars · 67 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A codemod tool by Lyft that automatically converts React components written in JavaScript to TypeScript by inferring prop and state types from PropTypes and setState usage. It is available as an npm CLI (`react-js-to-ts`) and a VSCode extension.
Use cases
- convert react javascript components to typescript
- migrate a react codebase from js to ts
- generate typescript prop types from proptypes
- infer state types from setState calls
- remove proptypes and use typed react.component generics
- codemod react files to tsx
When to choose
- migrating legacy React JavaScript class components to TypeScript
- wanting automatic prop and state type inference from PropTypes and setState
- preferring a CLI or VSCode extension for one-off file conversions
When to avoid
- working on already-TypeScript codebases
- needing actively maintained tooling or support for modern React hooks patterns
- requiring conversion of functional components without PropTypes
Facets
cli-tool · maturity abandoned
parser developer-tools cli web-development frontend developer-tools programming-languages cli editor-plugin cross-platform react typescript codemod code-transformation vscode-extension prop-types javascript-to-typescript nodejs
2 sources
- readme: https://github.com/lyft/react-javascript-to-typescript-transform · fetched 2026-08-28 · a1e6183a7781
- homepage: https://marketplace.visualstudio.com/items?itemName=mohsen1.react-javascript-to-typescript-transform-vscode#overview · fetched 2026-08-29 · c8a35dd62f61
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lyft/react-javascript-to-typescript-transform | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="lyft/react-javascript-to-typescript-transform")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem