type DescribableFunction = {
description: string;
(someArg: number): boolean;
};
function doSomething(fn: DescribableFunction) {
console.log(fn.description + " returned " + fn(6));
}
console.log(doSomething({description="how are you", (9)=>return true;})) //error
I attempted to invoke the aforementioned function with arguments, but encountered an error:
"This expression is not callable. Type '{ description: string; }' has no call signatures.(2349) (property) description: any"
How can I properly execute this function?