Skip to content

Commit

Permalink
[lab] Use the public API for module augmentation (#27735)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Aug 14, 2021
1 parent 2803f0c commit 96aa11c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@material-ui/core';
import { ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@material-ui/core/styles';

export interface LabComponents {
MuiCalendarPicker?: {
Expand Down Expand Up @@ -98,6 +98,6 @@ export interface LabComponents {
};
}

declare module '@material-ui/core/styles/components' {
declare module '@material-ui/core/styles' {
interface Components extends LabComponents {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface LabComponentNameToClassKey {
MuiYearPicker: YearPickerClassKey;
}

declare module '@material-ui/core/styles/overrides' {
declare module '@material-ui/core/styles' {
interface ComponentNameToClassKey extends LabComponentNameToClassKey {}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/themeAugmentation/props.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface LabComponentsPropsList {
MuiYearPicker: YearPickerProps<unknown>;
}

declare module '@material-ui/core/styles/props' {
declare module '@material-ui/core/styles' {
interface ComponentsPropsList extends LabComponentsPropsList {}
}

Expand Down

0 comments on commit 96aa11c

Please sign in to comment.