Skip to content

Commit

Permalink
[styled-engine] Add back removed internal function (#44421)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova authored Nov 19, 2024
1 parent 851eb45 commit eab59be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/mui-styled-engine-sc/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ export function internal_mutateStyles(
processor: (styles: any) => any,
): void;

// Not needed anymore, but fixes https://github.com/mui/material-ui/issues/44112
// TODO: Remove it in v7
// eslint-disable-next-line @typescript-eslint/naming-convention
export function internal_processStyles(
tag: React.ElementType,
processor: (styles: any) => any,
): void;

// eslint-disable-next-line @typescript-eslint/naming-convention
export function internal_serializeStyles<P>(styles: Interpolation<P>): object;

Expand Down
7 changes: 7 additions & 0 deletions packages/mui-styled-engine-sc/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ export function internal_mutateStyles(tag, processor) {
}
}

// Not needed anymore, but fixes https://github.com/mui/material-ui/issues/44112
// TODO: Remove it in v7
// eslint-disable-next-line @typescript-eslint/naming-convention
export function internal_processStyles(tag, processor) {
return internal_mutateStyles(tag, processor);
}

// eslint-disable-next-line @typescript-eslint/naming-convention
export function internal_serializeStyles(styles) {
return styles;
Expand Down

0 comments on commit eab59be

Please sign in to comment.