Resolve TS errors and warnings

TODO: Use StyleTree types to remove `any`s from styleTrees.
This commit is contained in:
Nate Butler
2023-06-28 17:54:36 -04:00
parent 1177980172
commit bfdd0824e2
53 changed files with 224 additions and 1010 deletions
+11 -12
View File
@@ -177,30 +177,29 @@ const buildVariant = (variant: Variant): ThemeConfig => {
let neutral: string[] = []
switch (variant.name) {
case "Dark Hard": {
case "Dark Hard":
neutral = darkHardNeutral
break
}
case "Dark": {
case "Dark":
neutral = darkNeutral
break
}
case "Dark Soft": {
case "Dark Soft":
neutral = darkSoftNeutral
break
}
case "Light Hard": {
case "Light Hard":
neutral = lightHardNeutral
break
}
case "Light": {
case "Light":
neutral = lightNeutral
break
}
case "Light Soft": {
case "Light Soft":
neutral = lightSoftNeutral
break
}
}
const ramps = {