no-runtime-typeof
WarningAvoid typeof narrowing, except comparisons with "undefined".
if (typeof input === "string") useName(input);switch (typeof value) { case "number": break;}if (typeof document === "undefined") return;const parsed = UserSchema.parse(input);How to fix
Comparing with "undefined" is allowed, since it checks that a binding exists.