mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
743 B
TypeScript
20 lines
743 B
TypeScript
import {} from "react";
|
|
import { CSSProp } from ".";
|
|
|
|
declare module "react" {
|
|
interface Attributes {
|
|
// NOTE: unlike the plain javascript version, it is not possible to get access
|
|
// to the element's own attributes inside function interpolations.
|
|
// Only theme will be accessible, and only with the DefaultTheme due to the global
|
|
// 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.
|
|
/**
|
|
* 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?: CSSProp;
|
|
}
|
|
}
|