TRPC003warningPro
trpc-result-type-bypass
Type assertion or @ts-ignore on tRPC result defeats end-to-end type safety.
Applies to: TypeScript
Why this matters
tRPC's main benefit is end-to-end type safety via TypeScript inference. Using `as any`, `as unknown as`, `@ts-ignore`, or `@ts-expect-error` on tRPC results throws that away. If the types don't match, fix the root cause (usually a schema mismatch) instead of suppressing the error.
Catch it before it ships
pip install stablestack # or: npx stablestackstablestack # scans your project, TRPC003 includedstablestack explain TRPC003TRPC003 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.
False positive in your codebase? Suppress a single line with # noqa: TRPC003