I am looking for a universal way to achieve something like this:
type InputType = { increment: (state: T) => T, add: (state: T, count: number) =&g