python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can you add new variants to the Container component in MUI V5, using TS Module Augmentation?
I'm attempting to add a new variant to the Container component, directly in the ThemeOptions.
The documentation explains that we need to use module augmentation to extend the interface so that the ts ...
Eric Crescioni
Votes: 0
Answers: 0
Typescript: can't augment namespace
I'm using "amazon-connect-streams" npm package. The package has a few mismatches between the type definition and the javascript runtime.
I'm trying to override the bad typing in my project, ...
gamliela
Votes: 0
Answers: 0
Extend material ui theme options using module augmentation not working with TypeText
Here is a codesandbox to reproduce the issue.
https://codesandbox.io/s/thirsty-sun-0zyb3?file=/src/newTheme.ts:0-401
The TypeText is not being accepted, but the SimplePaletteColorOptions is working. I...
Gaurav
Votes: 0
Answers: 1
typescript module augmentation with inferred type
i hope someone can help me with this. I am creating a design system and therefor have 2 repos: the react component library and the application that consumes it. In the react library i am exporting a c...
jarvispact
Votes: 0
Answers: 0