Tsx compiler cant find Moralis.User.requestEmailVerification()

im running moralis in a react app
i am trying to run

await Moralis.User.requestEmailVerification("[email protected]")

if i run this in a jsx file its fine, but when i try run it in a tsx file, the compiler cant find requestEmailVerification interface in UserController. i looked in the UserController file and surprisingly requestEmailVerification was not in the file. how is it that jsx compiler can find this function but tsx compiler cant? and how do i fix this? do i just pull the function into a jsx component and solve it that way?