UNPKG

840 BSource Map (JSON)View Raw
1{"version":3,"file":"IStyleFunction.js","sourceRoot":"../src/","sources":["IStyleFunction.ts"],"names":[],"mappings":"","sourcesContent":["import { IStyleSet } from './IStyleSet';\nimport { DeepPartial } from './DeepPartial';\n\n/**\n * A style function takes in styleprops and returns a partial styleset.\n * {@docCategory IStyleFunction}\n */\nexport type IStyleFunction<TStylesProps, TStyleSet extends IStyleSet<TStyleSet>> = (\n props: TStylesProps,\n) => DeepPartial<TStyleSet>;\n\n/**\n * Represents either a style function that takes in style props and returns a partial styleset,\n * or a partial styleset object.\n * {@docCategory IStyleFunctionOrObject}\n */\nexport type IStyleFunctionOrObject<TStylesProps, TStyleSet extends IStyleSet<TStyleSet>> =\n | IStyleFunction<TStylesProps, TStyleSet>\n | DeepPartial<TStyleSet>;\n"]}
\No newline at end of file