The Danger of Type Assertions You might use the as keyword to tell the compiler to trust you. const user = (await response.json ()) as User; This makes your editor happy.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results