mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 03:29:11 +02:00
fix(module-type-aliases): move @type packages to dependencies (#5601)
* Move devDeps to deps Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Update docs Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Update init template Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
parent
02822b8a42
commit
e1f4677d04
6 changed files with 6 additions and 20 deletions
|
@ -17,10 +17,10 @@ Below are some guides on how to migrate an existing project to TypeScript.
|
|||
|
||||
## Setup {#setup}
|
||||
|
||||
To start using TypeScript, add `@docusaurus/module-type-aliases` and some `@types` dependencies to your project:
|
||||
To start using TypeScript, add `@docusaurus/module-type-aliases` and the base TS config to your project:
|
||||
|
||||
```bash npm2yarn
|
||||
npm install --save-dev typescript @docusaurus/module-type-aliases @types/react @types/react-router-dom @types/react-helmet @tsconfig/docusaurus
|
||||
npm install --save-dev typescript @docusaurus/module-type-aliases @tsconfig/docusaurus
|
||||
```
|
||||
|
||||
Then add `tsconfig.json` to your project root with the following content:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue