ts declarar tipo de função

type GreetFunction = (a: string) => void;
florinrelea