5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

@types/* を(あれば)まとめてインストール

Posted at

jeffijoe/typesync を使う。

インストール

npm i -g typesync

@types/... @types...としていた部分をtypesyncだけで

これだけでいけますね。

-npm i react react-dom && npm i -D @types/react @types/react-dom
+npm i react react-dom && typesync
log
  • react@16.0.0
  • react-dom@16.0.0
    added 18 packages in 10.626s
    » TypeSync v0.2.0
    ✔ 2 typings added:
  • @typings/react
  • @typings/react-dom
>```json:package.json
{
  "dependencies": {
    "react": "^16.0.0",
    "react-dom": "^16.0.0"
  },
  "devDependencies": {
    "@types/react": "^16.0.7",
    "@types/react-dom": "^15.5.5"
  }
}
5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?