I know how to define an interface for a function (callable object) with an additional property:
interface namedFunction {
(x: number): number;
name: string
}
However, I can't figure out how to create an object of this type, without running into Typescript type errors. How can I instantiate an object that satisfies this interface?