diff --git a/radium/radium-tests.tsx b/radium/radium-tests.tsx index c8379b39b2..b8ad3928dd 100644 --- a/radium/radium-tests.tsx +++ b/radium/radium-tests.tsx @@ -43,6 +43,12 @@ class TestComponentWithConfig extends React.Component<{ a?: number }, {}> { }} > + ) diff --git a/radium/radium.d.ts b/radium/radium.d.ts index 1989156877..0cb4304d96 100644 --- a/radium/radium.d.ts +++ b/radium/radium.d.ts @@ -1,6 +1,6 @@ -// Type definitions for radium 0.17.1 +// Type definitions for radium 0.18.1 // Project: https://github.com/formidablelabs/radium -// Definitions by: Alex Gorbatchev , Philipp Holzer , Alexey Svetliakov +// Definitions by: Alex Gorbatchev , Philipp Holzer , Alexey Svetliakov , Mikael Hermansson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -19,10 +19,10 @@ declare module 'radium' { */ export interface StyleProps { /** - * 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. + * 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: StyleRules; + 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