Simplify css attribute declaration, add jsdoc

This commit is contained in:
Jessica
2018-11-29 13:57:50 +09:00
parent 3fc77b020c
commit 12b2403208
+6 -1
View File
@@ -454,6 +454,11 @@ declare module "react" {
// nature of this declaration.
// If you are writing this inline you already have access to all the attributes anyway,
// no need for the extra indirection.
css?: import(".").CSSIntrinsicAttributeType; // tslint:disable-line whitespace
/**
* If present, this React element will be converted by
* `babel-plugin-styled-components` into a styled component
* with the given css as its styles.
*/
css?: CSSIntrinsicAttributeType;
}
}