Skip to content

Commit

Permalink
docs: update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdevv committed Feb 24, 2023
1 parent 85be3af commit 24dc26c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/guide/migrate/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@ export default command({
})
```

## TS & JS Config

If you are using TypeScript you should have a `tsconfig.json` in your project, similiarly if you are using JavaScript you should have a `jsconfig.json` in your project. They should both look something like this:

```json
{
"compilerOptions": {
"lib": ["ESNext"],
"module": "ESNext",
"target": "ESNext",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"strict": true,
"checkJs": true,
"allowJs": true
},
"include": ["./src/**/*.js", "./src/**/*.ts"]
}
```

## Erroring

Props previously threw an error when you tried to access soemthing that didn't exist, this is no longer the case.

0 comments on commit 24dc26c

Please sign in to comment.