Using coerce is showing red squiggly lines elsewhere in WebStorm
Summary The issue at hand involves red squiggly lines in WebStorm, indicating potential errors, when using TypeScript in a NextJS application with Zod for validation. Specifically, the errors appear when using coerce in the validation schema. Root Cause The root cause of this issue is due to the following reasons: Type inference: WebStorm’s type inference … Read more