mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
react-css-modules: elaborated on how to use the InjectedCSSModuleProps
This commit is contained in:
+4
-1
@@ -19,8 +19,11 @@ declare module 'react-css-modules' {
|
||||
}
|
||||
|
||||
module CSSModules {
|
||||
// Extend your component's Prop interface with this one to get access to `this.props.styles`
|
||||
//
|
||||
// interface MyComponentProps extends CSSModules.InjectedCSSModuleProps {}
|
||||
interface InjectedCSSModuleProps {
|
||||
styles: StylesObject;
|
||||
styles?: StylesObject;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user