Towards removing implicit anys

This commit is contained in:
Manav Rathi 2024-05-24 20:16:55 +05:30
parent acebb86fec
commit 54820689c2
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

View file

@ -14,7 +14,6 @@
"strict": true,
"strictNullChecks": false,
"noImplicitAny": false,
/* Stricter than strict */
"noImplicitReturns": true,
"noUnusedParameters": true,

View file

@ -200,7 +200,15 @@ const getDropShadowStyle = (shadows: Shadow[]) => {
.join(" ");
};
function getIconColor(ownerState, colors: ThemeColorsOptions) {
interface IconColorableOwnerState {
color?: string;
disabled?: boolean;
}
function getIconColor(
ownerState: IconColorableOwnerState,
colors: ThemeColorsOptions,
) {
switch (ownerState.color) {
case "primary":
return {