@material-ui/core
Version:
React components that implement Google's Material Design.
12 lines (10 loc) • 467 B
TypeScript
import { CSSProperties, StyleRules } from './withStyles';
/**
* This function doesn't really "do anything" at runtime, it's just the identity
* function. Its only purpose is to defeat TypeScript's type widening when providing
* style rules to `withStyles` which are a function of the `Theme`.
*
* @param styles a set of style mappings
* @returns the same styles that were passed in
*/
export default function createStyles<S extends StyleRules>(styles: S): S;