Below I have an example of a callback that can take an optional argument.
interface Context { hello: boolean } type OptionsTest = | ((this: Context)