Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Towards removing implicit anys

Manav Rathi54820689c29e
diff --git a/web/apps/auth/tsconfig.json b/web/apps/auth/tsconfig.json
index fc65e0c333..724f818380 100644
--- a/web/apps/auth/tsconfig.json
+++ b/web/apps/auth/tsconfig.json
@@ -14,7 +14,6 @@
"strict": true,
"strictNullChecks": false,
- "noImplicitAny": false,
/* Stricter than strict */
"noImplicitReturns": true,
"noUnusedParameters": true,
diff --git a/web/packages/shared/themes/components.ts b/web/packages/shared/themes/components.ts
index 7692ee8dd3..64659b3649 100644
--- a/web/packages/shared/themes/components.ts
+++ b/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 {