Skip to content

Commit 704a28f

Browse files
committed
update prop-types-typescript name
1 parent 6d1b38d commit 704a28f

7 files changed

Lines changed: 17 additions & 7 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ npx codemod react-proptypes-to-prop-types --target <path>
8989

9090
See [react-proptypes-to-prop-types](https://app.codemod.com/registry/react-proptypes-to-prop-types).
9191

92+
#### `react-prop-types-typescript`
93+
94+
Converts React `propTypes` declarations into TypeScript props interfaces.
95+
96+
```bash
97+
npx codemod react-prop-types-typescript --target <path>
98+
```
99+
100+
See [react-prop-types-typescript](https://app.codemod.com/registry/react-prop-types-typescript).
101+
92102
#### Additional useful React codemods
93103

94104
- [`react-create-element-to-jsx`](https://app.codemod.com/registry/react-create-element-to-jsx)

TESTING_REPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
| Item | Detail |
99
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
10-
| **JSSG codemods** | `react-`* packages plus current local branch implementations under `codemods/` for newly ported or not-yet-published work such as `react-19-prop-types-typescript` |
10+
| **JSSG codemods** | `react-`* packages plus current local branch implementations under `codemods/` for newly ported or not-yet-published work such as `react-prop-types-typescript` |
1111
| **Comparison baselines** | `react/19/`* (jscodeshift, from Codemod Registry) for published transforms; official `reactjs/react-codemod` checkout at `5207d594fad6f8b39c51fd7edd2bcb51047dc872` for unpublished legacy transforms; `prop-types-typescript` compared against `codemod/commons/codemods/react/prop-types-typescript` |
1212
| **CLI** | `codemod@latest` with `--no-interactive` flag |
1313
| **Test repos** | youzan/zent (React 17, TS), salesforce/design-system-react (React 17, JS), MetaMask/metamask-extension (React 16/17-era app), azat-co/react-quickly (React ~15, JS/JSX), atlassian/react-beautiful-dnd (React 16.13, JS+Flow), calcom/cal.diy (redirect from calcom/cal.com as of 2026-04-17, React 18/19 monorepo, tested at `v6.2.0` / `1c193cc`), plus targeted imported-codemod slices from `DataTurks` and `react-native-snap-carousel` |

codemods/prop-types-typescript/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-19-prop-types-typescript
1+
# react-prop-types-typescript
22

33
Codemod to convert React PropTypes into TypeScript props interfaces.
44

@@ -12,7 +12,7 @@ Codemod to convert React PropTypes into TypeScript props interfaces.
1212
## Usage
1313

1414
```bash
15-
npx codemod react-19-prop-types-typescript --target <path>
15+
npx codemod react-prop-types-typescript --target <path>
1616
```
1717

1818
## Before

codemods/prop-types-typescript/codemod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
schema_version: "1.0"
22

3-
name: "react-19-prop-types-typescript"
3+
name: "react-prop-types-typescript"
44
version: "0.1.2"
55
description: "Convert React PropTypes declarations into TypeScript props interfaces"
66
author: "Codemod <hello@codemod.com>"

codemods/prop-types-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-19-prop-types-typescript",
2+
"name": "react-prop-types-typescript",
33
"version": "0.1.2",
44
"description": "Convert React PropTypes declarations into TypeScript props interfaces",
55
"type": "module",

codemods/react-19-migration-recipe/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ This recipe applies the following codemods:
1414
2. [**react-19-replace-string-ref**](https://app.codemod.com/registry/react-19-replace-string-ref) — replace deprecated string refs with callback refs
1515
3. [**react-19-replace-act-import**](https://app.codemod.com/registry/react-19-replace-act-import) — move `act` from `react-dom/test-utils` to `react`
1616
4. [**react-19-replace-use-form-state**](https://app.codemod.com/registry/react-19-replace-use-form-state) — rename `useFormState` to `useActionState`
17-
5. [**react-19-prop-types-typescript**](https://app.codemod.com/registry/react-19-prop-types-typescript) — convert React `propTypes` declarations into TypeScript props interfaces
17+
5. [**react-prop-types-typescript**](https://app.codemod.com/registry/react-prop-types-typescript) — convert React `propTypes` declarations into TypeScript props interfaces

codemods/react-19-migration-recipe/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ nodes:
2525

2626
- name: "Convert PropTypes to TypeScript props"
2727
codemod:
28-
source: "react-19-prop-types-typescript"
28+
source: "react-prop-types-typescript"

0 commit comments

Comments
 (0)