1.

What is the Function type in TypeScript?

Answer»

FUNCTION is a global type in TypeScript. It has PROPERTIES like bind, CALL, and apply, ALONG with the other properties present on all function values.

function perform(fn: Function) {fn(10);}

You can always call a value of the Function type, and it returns a value of ‘any’ type. 



Discussion

No Comment Found