Is it possible to create a function interface in typescript that mirrors the parameters and return type of a function?
For example, when we have a function like
meth (a : {b: B, c: C}) : {b: B, c: C} {...}
we can define an interface A as follows:
interface A {
b : B;
c : C;
}
meth (a : A) : A {...}
However, what about cases where the function has a different signature, like
meth (a : (b: B) => C) : (b: B) => C {...}
Is there a way to define a function type similarly so that we can write
meth (a : A) : A {...}
once again?