Here's the code
you can hover over Success to see the error. it reads Property 'Success' does not exist on type '{ Success: { pass_salt: {}; key_salt: {}; }; } | "InvalidUsernameHashLength" | "InvalidUsernameHash" | "Error"'. Property 'Success' does not exist on type '"InvalidUsernameHashLength"'. basically you haven't checked that GetUserSalts is of type { Success: .. }, because GetUserSalts's type is a union
Обсуждают сегодня