1 | import {} from "react";
|
2 | import { CSSProp } from ".";
|
3 |
|
4 | declare module "react" {
|
5 | interface Attributes {
|
6 | // NOTE: unlike the plain javascript version, it is not possible to get access
|
7 | // to the element's own attributes inside function interpolations.
|
8 | // Only theme will be accessible, and only with the DefaultTheme due to the global
|
9 | // nature of this declaration.
|
10 | // If you are writing this inline you already have access to all the attributes anyway,
|
11 | // no need for the extra indirection.
|
12 | /**
|
13 | * If present, this React element will be converted by
|
14 | * `babel-plugin-styled-components` into a styled component
|
15 | * with the given css as its styles.
|
16 | */
|
17 | css?: CSSProp | undefined;
|
18 | }
|
19 | }
|