根据有关通过 JavaScript 样式库使用的文档,我正在尝试在我的应用程序中访问 Office Fabric UI 主题颜色。我已经按照说明安装了@uifabric/styling
. 然后我应该简单地将样式导入为
import {
styles
} from '@uifabric/styling';
...获得颜色。但我收到以下 TypeScript 错误:
[ts] Module '"c:/.../node_modules/@uifabric/styling/lib/index"' has
no exported member 'styles'. Did you mean 'IStyle'?
文档是旧的还是打字稿定义是旧的?
有任何想法吗?