Ver código fonte

Towards removing implicit anys

Manav Rathi 1 ano atrás
pai
commit
54820689c2

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

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

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

@@ -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 {