Skip to content

Commit

Permalink
[system] Fix the inconsistent types of the mergeBreakpointsInOrder
Browse files Browse the repository at this point in the history
…function (#38749)

Co-authored-by: imevanc <[email protected]>
Co-authored-by: ZeeshanTamboli <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2023
1 parent feb5cd9 commit d8d7b63
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/mui-system/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type BordersProps = PropsFor<typeof borders>;

// 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
Expand All @@ -41,12 +41,6 @@ export function breakpoints<Props, Breakpoints extends string = DefaultBreakPoin
styleFunction: StyleFunction<Props>,
): StyleFunction<Partial<Record<Breakpoints, Props>> & 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<T extends Array<StyleFunction<any>>>(...args: T): ComposedStyleFunction<T>;

export type DisplayProps = PropsFor<typeof display>;
Expand Down

0 comments on commit d8d7b63

Please sign in to comment.