function greeter (fn:(a:string) => void) code example
Example: function greeter (fn:(a:string) => void)
type DescribableFunction = {
description: string;
(someArg: number): boolean;
};
function doSomething(fn: DescribableFunction) {
console.log(fn.description + " returned " + fn(6));
}