From a2eccc04b6e688f55a2ca0286d171b1877837134 Mon Sep 17 00:00:00 2001 From: Marija Najdova Date: Mon, 26 Sep 2022 06:52:07 +0200 Subject: [PATCH] [core] Document some types in @mui/styled-engine-sc (#34413) --- packages/mui-styled-engine/src/index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/mui-styled-engine/src/index.d.ts b/packages/mui-styled-engine/src/index.d.ts index 9ca475e7b46eb3..1130164844f7b0 100644 --- a/packages/mui-styled-engine/src/index.d.ts +++ b/packages/mui-styled-engine/src/index.d.ts @@ -31,8 +31,13 @@ export type CSSProperties = CSS.PropertiesFallback; export type CSSPropertiesWithMultiValues = { [K in keyof CSSProperties]: CSSProperties[K] | Array>; }; + +// TODO v6 - check if we can drop the unknown, as it breaks the autocomplete +// For more info on why it was added, see https://github.com/mui/material-ui/pull/26228 export type CSSPseudos = { [K in CSS.Pseudos]?: unknown | CSSObject }; +// TODO v6 - check if we can drop the unknown, as it breaks the autocomplete +// For more info on why it was added, see https://github.com/mui/material-ui/pull/26228 export interface CSSOthersObject { [propertiesName: string]: unknown | CSSInterpolation; }