diff --git a/types/styled-components/index.d.ts b/types/styled-components/index.d.ts index ccabf0354b..b1d07db6f0 100644 --- a/types/styled-components/index.d.ts +++ b/types/styled-components/index.d.ts @@ -510,6 +510,7 @@ export class StyleSheetManager extends React.Component< // ONLY string literals and inline invocations of css`` are supported, anything else crashes the plugin export type CSSProp> = | string + | CSSObject | FlattenInterpolation>; export default styled; diff --git a/types/styled-components/test/index.tsx b/types/styled-components/test/index.tsx index 7779fe6fea..02e3e575f1 100644 --- a/types/styled-components/test/index.tsx +++ b/types/styled-components/test/index.tsx @@ -809,11 +809,7 @@ function cssProp() { return ( <>
- {/* - For some reason $ExpectError doesn't work on this expression. - Only strings work, objects crash the plugin. -
- */} +