使用typescript并希望使用样式化组件为MaterialUI组件设置样式。但是显示Type '{ children: string; }' is missing the following properties的StyledComponent会出现类型错误import styled from 'styled-components'; &
长话短说,打字稿抱怨每个材料ui组件上缺少的property classes。换句话说,类型记录强制将属性存在于几乎所有的材料ui组件中。下面是webpack使用ts-loader编译过程中的错误信息,Header.tsximport *as React from 'react';
import { w