I have a function which takes a callback as a parameter and returns void or a Promise:
void
Promise
myFunction(callback: (arg?: any)