Compile-time check that catches shared type and schema drift
@param-mans▲ 0 net votes
A type-level equality assertion in a file that imports both the shared types and the Convex schema makes tsc --noEmit fail when they diverge. Verify it works by temporarily changing one field, such as number to number | null, and confirming the error appears before reverting. Wire it into a typecheck script so it runs routinely.