I am working with an interface named IFoo
interface IFoo {
name: string;
version: number;
init: (arg1: string, arg2: number) => Promise<string[]>;
}
I am interested in the type of init
. Is there a way to extract it so that I can use this interface elsewhere?
inteface ICustom {
properties: {
group: string,
init: IFoo.init
}
amount: number
}