Skip to content

Commit

Permalink
[core] Document some types in @mui/styled-engine-sc (#34413)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Sep 26, 2022
1 parent 84a7619 commit 00255ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mui-styled-engine/src/index.d.ts
Expand Up @@ -31,8 +31,13 @@ export type CSSProperties = CSS.PropertiesFallback<number | string>;
export type CSSPropertiesWithMultiValues = {
[K in keyof CSSProperties]: CSSProperties[K] | Array<Extract<CSSProperties[K], string>>;
};

// 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;
}
Expand Down

0 comments on commit 00255ba

Please sign in to comment.