How to type the use of Material-UI's `withStyles` decorator in the example?
问题 I'm trying to figure out how to annotate the types of the following styles (I converted from plain JavaScript to TypeScript and am adding type annotations): import * as React from 'react' import { withStyles } from '@material-ui/core' @withStyles(styles) // TYPE ERROR HERE export default class App extends React.Component<{}, {}> { render(): JSX.Element { return ( <div className="some-class"> Hello </div> ) } } function styles() { return { // assume I need to use global styles, my actual