Remix/Single Fetch/Include Typedef

/icons/calendar.svg

Last update

May 3, 2024

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