From d8d7b63307412c851bf416947d495e54f9cdf56f Mon Sep 17 00:00:00 2001 From: Evan Charalampidis <96417438+imevanc@users.noreply.github.com> Date: Tue, 5 Sep 2023 07:01:26 +0100 Subject: [PATCH] [system] Fix the inconsistent types of the `mergeBreakpointsInOrder` function (#38749) Co-authored-by: imevanc Co-authored-by: ZeeshanTamboli --- packages/mui-system/src/index.d.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/mui-system/src/index.d.ts b/packages/mui-system/src/index.d.ts index d8476ed22a34ac..7f24359229a63d 100644 --- a/packages/mui-system/src/index.d.ts +++ b/packages/mui-system/src/index.d.ts @@ -32,7 +32,7 @@ export type BordersProps = PropsFor; // breakpoints.js type DefaultBreakPoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; -export { handleBreakpoints } from './breakpoints'; +export { handleBreakpoints, mergeBreakpointsInOrder } from './breakpoints'; /** * @returns An enhanced stylefunction that considers breakpoints @@ -41,12 +41,6 @@ export function breakpoints, ): StyleFunction> & Props>; -// restructures the breakpoints in the in the correct order and merges all styles args -export function mergeBreakpointsInOrder( - breakpointsInput: { keys: string[]; up: (key: string) => string }, - ...styles: object[] -): object; - export function compose>>(...args: T): ComposedStyleFunction; export type DisplayProps = PropsFor;