How to define type for a function callback (as any function type, not universal any) used in a method parameter

Currently I have type definition as:

interface Param {
    title: string;
    callback: any;
}

I need something like:

interface Param {
    title: string;
    callback: function;
}

but the 2nd one is not being accepted.

Leave a Comment