Towards removing implicit anys
This commit is contained in:
parent
acebb86fec
commit
54820689c2
2 changed files with 9 additions and 2 deletions
|
@ -14,7 +14,6 @@
|
|||
|
||||
"strict": true,
|
||||
"strictNullChecks": false,
|
||||
"noImplicitAny": false,
|
||||
/* Stricter than strict */
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedParameters": true,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue