[lab] themeAugmentation type definition is broken in v6.4.0 #45072
Labels
bug 🐛
Something doesn't work
component: button
This is the name of the generic UI component, not the React module!
component: LoadingButton
The React component.
typescript
Steps to reproduce
Steps:
npm create vite@latest
"skipLibCheck": false
in your tsconfig@mui/lab
import type {} from "@mui/lab/themeAugmentation";
npx tsc --noemit --project tsconfig.app.json
Current behavior
Type errors have occurred.
Expected behavior
No type errors.
Context
In v6.4.0, the
<Button>
component supportsloading
attribute, and<LoadingButton>
has been deprecated.However,
themeAugmentation
still references deleted types.These types were declared in v6.3.1 and earlier.
In v6.4.0, the definition for
<LoadingButton>
shares the same definition asButton
.Thus, type errors have occurred.
Your environment
npx @mui/envinfo
Search keywords: lab, themeAugmentation, LoadingButton, type error
The text was updated successfully, but these errors were encountered: