Remix/Single Fetch/Include Typedef

1.0.0Last update Jul 24, 2024
by@jacobparis
Remix-run/react

Remix / Single Fetch / Include Typedef

Adds the typings for Single Fetch to your tsconfig.json file.

Usage

You can use this codemod with the following command:

codemod remix/single-fetch/include-typedef --include="tsconfig.json"

Note that you must specify the --include flag because codemod does not target json files by default.

Examples

{
"include": [
// ...
+ "node_modules/@remix-run/react/future/single-fetch.d.ts"
]
}

Affected files

  • tsconfig.json

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now