Skip to content

Commit

Permalink
address PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
imevanc committed Sep 4, 2023
1 parent 7763c70 commit 70e6e31
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/mui-system/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CSSObject } from '@emotion/react';
import {
ComposedStyleFunction,
StyleFunction,
Expand All @@ -14,7 +13,6 @@ import {
sizing,
typography,
} from './Box';
import { Breakpoints } from './createTheme/createBreakpoints';
// disable automatic export
export {};

Expand All @@ -34,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 @@ -43,11 +41,6 @@ export function breakpoints<Props, Breakpoints extends string = DefaultBreakPoin
styleFunction: StyleFunction<Props>,
): StyleFunction<Partial<Record<Breakpoints, Props>> & Props>;

// restructures the breakpoints in the correct order and merges all styles args
export function mergeBreakpointsInOrder(
breakpointsInputs: Breakpoints,
styles: CSSObject[],
): CSSObject;

export function compose<T extends Array<StyleFunction<any>>>(...args: T): ComposedStyleFunction<T>;

Expand Down

0 comments on commit 70e6e31

Please sign in to comment.