// Type definitions for radium 0.18.1 // Project: https://github.com/formidablelabs/radium // Definitions by: Alex Gorbatchev , Philipp Holzer , Alexey Svetliakov , Mikael Hermansson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module 'radium' { import * as React from 'react'; namespace Radium { interface StyleRules { [index: string]: React.CSSProperties; } /** * Style component properties */ export interface StyleProps { /** * An object of styles, or an object of CSS rules to render. Each key of the rules object is a CSS * selector and the value is an object of styles. If rules is empty, the component will render nothing. */ rules: React.CSSProperties | StyleRules; /** * A string that any included selectors in rules will be appended to. * Use to scope styles in the component to a particular element. A good use case might be to generate a unique * ID for a component to scope any styles to the particular component that owns the