I am working with typescript and passing a function into another function.
If I have a function that is passed into another function in typescript how should I write the type?
I have tried successHandler: function but this doesn't appear to work.
export function useSubscription(address: string, successHandler: function) {
successHandler(address)
}