UNPKG

923 BTypeScriptView Raw
1import { IRawStyleBase } from './IRawStyleBase';
2import { IStyle } from './IStyle';
3/**
4 * IRawStyle extends a raw style object, but allows selectors to be defined
5 * under the selectors node.
6 * @public
7 * {@docCategory IRawStyle}
8 */
9export interface IRawStyle extends IRawStyleBase {
10 /**
11 * Allow css variables, strings, objects. While we should have more strict typing
12 * here, partners are broken in many unpredictable cases where typescript can't infer
13 * the right typing. Loosening the typing to both allow for css variables and other things.
14 */
15 [key: string]: any;
16 /**
17 * Display name for the style.
18 */
19 displayName?: string;
20 /**
21 * @deprecated - The selectors wrapper is no longer required. You may add selectors as siblings to other
22 * style properties, like most css-in-js libraries support.
23 */
24 selectors?: {
25 [key: string]: IStyle;
26 };
27}