I have a problem which boils down to trying to assign a function with a specific parameter type to a variable expecting a function with a generic type:
const