Is it possible to define a function interface in typescript?
for instance, when we have things such as
meth (a : {b: B, c: C}) : {b: B, c: C} {...}
we can write
interface A {
b : B;
c : C;
}
meth (a : A) : A {...}
however, when we have something like
meth (a : (b: B) => C) : (b: B) => C {...}
can we do something similar, like define a function type so that we can write
meth (a : A) : A {...}
again?