Browse Source

Towards removing implicit anys

Manav Rathi 1 year ago
parent
commit
54820689c2
2 changed files with 9 additions and 2 deletions
  1. 0 1
      web/apps/auth/tsconfig.json
  2. 9 1
      web/packages/shared/themes/components.ts

+ 0 - 1
web/apps/auth/tsconfig.json

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

+ 9 - 1
web/packages/shared/themes/components.ts

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