CodeVetter
← All X-Rays
CodeVetter · local evidence export

Type-safety bypass via `as any` in TypeScript

codevetter-public-benchmark/ts-type-confusion

detected · medium confidence

Verification

Code reviewcompleted

Qualified static finding recorded.

Executable testnot verified

No exact-current runtime evidence is included.

Audiencenot run

No audience validation occurred.

Finding

mediumbenchmark ground truth

type confusion

The payload is cast through `as any` to Order, bypassing the compiler so a Refund-shaped object is treated as an Order; at runtime items is undefined and the .length access throws or silently corrupts downstream totals.

source.ts:19