From b3859781a0c3189a745c36932a25180da7e82348 Mon Sep 17 00:00:00 2001 From: mnajdova Date: Wed, 13 Mar 2024 10:36:21 +0100 Subject: [PATCH] convert to ts files --- packages/mui-material/src/styles/rootShouldForwardProp.d.ts | 1 - .../{rootShouldForwardProp.js => rootShouldForwardProp.ts} | 2 +- packages/mui-material/src/styles/slotShouldForwardProp.d.ts | 1 - .../{slotShouldForwardProp.js => slotShouldForwardProp.ts} | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 packages/mui-material/src/styles/rootShouldForwardProp.d.ts rename packages/mui-material/src/styles/{rootShouldForwardProp.js => rootShouldForwardProp.ts} (50%) delete mode 100644 packages/mui-material/src/styles/slotShouldForwardProp.d.ts rename packages/mui-material/src/styles/{slotShouldForwardProp.js => slotShouldForwardProp.ts} (78%) diff --git a/packages/mui-material/src/styles/rootShouldForwardProp.d.ts b/packages/mui-material/src/styles/rootShouldForwardProp.d.ts deleted file mode 100644 index 063fd1978af133..00000000000000 --- a/packages/mui-material/src/styles/rootShouldForwardProp.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function rootShouldForwardProp(prop: string): boolean; diff --git a/packages/mui-material/src/styles/rootShouldForwardProp.js b/packages/mui-material/src/styles/rootShouldForwardProp.ts similarity index 50% rename from packages/mui-material/src/styles/rootShouldForwardProp.js rename to packages/mui-material/src/styles/rootShouldForwardProp.ts index 513dd934526d45..92a781135a85a2 100644 --- a/packages/mui-material/src/styles/rootShouldForwardProp.js +++ b/packages/mui-material/src/styles/rootShouldForwardProp.ts @@ -1,5 +1,5 @@ import slotShouldForwardProp from './slotShouldForwardProp'; -const rootShouldForwardProp = (prop) => slotShouldForwardProp(prop) && prop !== 'classes'; +const rootShouldForwardProp = (prop: string) => slotShouldForwardProp(prop) && prop !== 'classes'; export default rootShouldForwardProp; diff --git a/packages/mui-material/src/styles/slotShouldForwardProp.d.ts b/packages/mui-material/src/styles/slotShouldForwardProp.d.ts deleted file mode 100644 index 6423e131a13b5f..00000000000000 --- a/packages/mui-material/src/styles/slotShouldForwardProp.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function slotShouldForwardProp(prop: string): boolean; diff --git a/packages/mui-material/src/styles/slotShouldForwardProp.js b/packages/mui-material/src/styles/slotShouldForwardProp.ts similarity index 78% rename from packages/mui-material/src/styles/slotShouldForwardProp.js rename to packages/mui-material/src/styles/slotShouldForwardProp.ts index 7436b180df7e4d..8b674ade2bd0cd 100644 --- a/packages/mui-material/src/styles/slotShouldForwardProp.js +++ b/packages/mui-material/src/styles/slotShouldForwardProp.ts @@ -1,5 +1,5 @@ // copied from @mui/system/createStyled -function slotShouldForwardProp(prop) { +function slotShouldForwardProp(prop: string) { return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as'; }