UNPKG

@uifabric/merge-styles

Version:
14 lines (13 loc) 682 B
import { IStyleSet } from './IStyleSet'; import { DeepPartial } from './DeepPartial'; /** * A style function takes in styleprops and returns a partial styleset. * {@docCategory IStyleFunction} */ export declare type IStyleFunction<TStylesProps, TStyleSet extends IStyleSet<TStyleSet>> = (props: TStylesProps) => DeepPartial<TStyleSet>; /** * Represents either a style function that takes in style props and returns a partial styleset, * or a partial styleset object. * {@docCategory IStyleFunctionOrObject} */ export declare type IStyleFunctionOrObject<TStylesProps, TStyleSet extends IStyleSet<TStyleSet>> = IStyleFunction<TStylesProps, TStyleSet> | DeepPartial<TStyleSet>;