Coming from a C# background, I want to create a datatype that defines a function signature. In C#, this is a delegate declared like this:
delegate
delegate v
Five years and many, many TS versions later I find myself using a simpler type definition for declaring function types:
type
type Greeter = (msg: string) => void; const someGreeter: Greeter = (msg: string) => `Hi there with ${msg}`;