I have a javascript function that I want to convert to typescript. My function returns a promise, but I don't know what type I should put inside the generic promise.
My function:
async function getData(pageNum): Promise<"Here">{
response = await ((await fetch(`https://reqres.in/api/users?page=${pageNum}`)).json());
response = response.data;
return response.map(user => user);
}