what type is a function in typescript code example
Example 1: types function typescript
interface Param {
title: string;
callback: function;
}
Example 2: types function typescript
interface Alternate_Syntax_4_Advanced {
title: string;
callback<T extends unknown[], R = unknown>(...args?: T): R;
}