I'm new to TypeScript and have a function that accepts another function as a parameter, which in turn takes a number as input.
loadResources(updateProgress: Function)
{
let progress = 100;
updateProgress(progress);
}
When calling this function:
loadResources((progressPercentage: number) => {
console.log(progressPercentage);
});
As you can see, the parameter is a function that takes a number as its input. How can we provide more specific information about this type of function instead of just "updateProgress: Function"?