Answers for "function greeter (fn:(a:string) => void)"

0

function greeter (fn:(a:string) => void)

type DescribableFunction = {
  description: string;
  (someArg: number): boolean;
};
function doSomething(fn: DescribableFunction) {
  console.log(fn.description + " returned " + fn(6));
}
Posted by: Guest on May-31-2021

Browse Popular Code Answers by Language