typescript · typescript/TS7034
TS7034
Variable Implicitly Has any in Some Locations
A variable widens to `any` because it is assigned values of different types across multiple code paths. Provide an explicit type annotation to constrain the variable's type.