首页 > 解决方案 > 如何为@material-ui/core@v4.xx 安装流类型

问题描述

如何为 4.xx 安装 material-ui/core 的流类型?看来自 1.xx 以来没有更新https://github.com/flow-typed/flow-typed/blob/master/definitions/npm/%40material-ui/core_v1.xx/flow_v0.58.x -v0.88.x/core_v1.xxjs并且文档非常稀疏https://material-ui.com/guides/flow/。我认为这可能不受支持,但图标类型定义似乎在这里维护,所以我有点困惑。

标签: javascriptreactjsmaterial-uiflowtypeflow-typed

解决方案


npm install --save @types/material-ui

或者

yarn add @types/material-ui

https://www.npmjs.com/package/@types/material-ui


推荐阅读