[Solved] Define Interface for function, for which I do not have access to the declaration


I’m not sure if I understand the question properly, but here’s how you can declare an argument that is a function taking two arguments – any and string – and returning void (that’s what I think the type of the function should be when I look at your code):

return function (boundTransportFn: (a: any, key: string) => void) {
}

See also “Writing the function type” section in the handbook.

0

solved Define Interface for function, for which I do not have access to the declaration