no-chained-type-assertions
ErrorDo not chain type assertions such as x as unknown as User.
const user = input as object as User;const user = input as unknown as User;const user = input as User;const values = [1, 2] as const;How to fix
The compiler trusts x as unknown as User without checking the value. Parse the value at the boundary, or fix the type at its source.