File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
mui-system/src/styleFunctionSx Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export interface SerializedStyles {
3535
3636export type CSSProperties = CSS . PropertiesFallback < number | string > ;
3737export type CSSPropertiesWithMultiValues = {
38- [ K in keyof CSSProperties ] : CSSProperties [ K ] | Array < Extract < CSSProperties [ K ] , string > > ;
38+ [ K in keyof CSSProperties ] : CSSProperties [ K ] | ReadonlyArray < Extract < CSSProperties [ K ] , string > > ;
3939} ;
4040
4141// TODO v6 - check if we can drop the unknown, as it breaks the autocomplete
@@ -49,7 +49,7 @@ export interface CSSOthersObject {
4949}
5050export type CSSPseudosForCSSObject = { [ K in CSS . Pseudos ] ?: CSSObject } ;
5151
52- export interface ArrayCSSInterpolation extends Array < CSSInterpolation > { }
52+ export interface ArrayCSSInterpolation extends ReadonlyArray < CSSInterpolation > { }
5353
5454export interface CSSOthersObjectForCSSObject {
5555 [ propertiesName : string ] : CSSInterpolation ;
@@ -98,7 +98,7 @@ export interface FunctionInterpolation<Props> {
9898 ( props : Props ) : Interpolation < Props > ;
9999}
100100
101- export interface ArrayInterpolation < Props > extends Array < Interpolation < Props > > { }
101+ export interface ArrayInterpolation < Props > extends ReadonlyArray < Interpolation < Props > > { }
102102
103103export type Interpolation < Props > =
104104 | InterpolationPrimitive
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { OverwriteCSSProperties } from './OverwriteCSSProperties';
99 * Note that this extends to non-theme values also. For example `display=['none', 'block']`
1010 * will also works.
1111 */
12- export type ResponsiveStyleValue < T > = T | Array < T | null > | { [ key : string ] : T | null } ;
12+ export type ResponsiveStyleValue < T > = T | ReadonlyArray < T | null > | { [ key : string ] : T | null } ;
1313
1414/**
1515 * Map of all CSS pseudo selectors (`:hover`, `:focus`, ...).
You can’t perform that action at this time.
0 commit comments