diff --git a/docs/package.json b/docs/package.json index a4d8df53f88287..13d425d008b6fa 100644 --- a/docs/package.json +++ b/docs/package.json @@ -43,7 +43,7 @@ "@types/react-text-mask": "^5.4.6", "@types/react-virtualized": "^9.21.4", "@types/react-window": "^1.7.0", - "@types/styled-components": "4.1.20", + "@types/styled-components": "4.4.0", "@zeit/next-typescript": "^1.1.1", "accept-language": "^3.0.18", "address": "^1.0.3", diff --git a/docs/src/pages/styles/advanced/GlobalClassName.tsx b/docs/src/pages/styles/advanced/GlobalClassName.tsx index 4fdd1899e30f78..56f16a63efa9ad 100644 --- a/docs/src/pages/styles/advanced/GlobalClassName.tsx +++ b/docs/src/pages/styles/advanced/GlobalClassName.tsx @@ -17,7 +17,7 @@ const StyledTextField = styled(TextField)` border-color: green; } } -`; +` as typeof TextField; export default function GlobalClassName() { return ( diff --git a/packages/material-ui/test/typescript/hoc-interop.spec.tsx b/packages/material-ui/test/typescript/hoc-interop.spec.tsx index f1060059dc4f3d..348f20c2ba0d90 100644 --- a/packages/material-ui/test/typescript/hoc-interop.spec.tsx +++ b/packages/material-ui/test/typescript/hoc-interop.spec.tsx @@ -27,7 +27,8 @@ const filledProps = { // styled { const StyledTextField = styled(TextField)``; - ; + // $ExpectError + ; // undesired, fixable by using older version 4.1.20 // $ExpectError ; // desired } diff --git a/yarn.lock b/yarn.lock index 025a6ba67bd5ce..f57911c0b59672 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2237,10 +2237,10 @@ resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-7.5.0.tgz#f5a10c27175465a0b001b68d8b9f761582967cc6" integrity sha512-NyzhuSBy97B/zE58cDw4NyGvByQbAHNP9069KVSgnXt/sc0T6MFRh0InKAeBVHJWdSXG1S3+PxgVIgKo9mTHbw== -"@types/styled-components@4.1.20": - version "4.1.20" - resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.1.20.tgz#8afd41039c0fd582152e57ff75c58a5353870de6" - integrity sha512-WztLENdKY+H9udccx5ZhAblgTp08NSfOFYdGaWM0MMm+1tEOioYVFwIIQ7Hx+9wWXiWKDXeoX6R3D/i1obnG3g== +"@types/styled-components@4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@types/styled-components/-/styled-components-4.4.0.tgz#15a3d59533fd3a5bd013db4a7c4422ec542c59d2" + integrity sha512-QFl+w3hQJNHE64Or3PXMFpC3HAQDiuQLi5o9m1XPEwYWfgCZtAribO5ksjxnO8U0LG8Parh0ESCgVxo4VfxlHg== dependencies: "@types/react" "*" "@types/react-native" "*"