TypeScript function signatures
Here are four different ways to define a typed function in TypeScript. //A const strLen: (str: string) => number = str => { return str.length; } //B type StrLenType = (str: string) => number const strLen: StrLenType = str => { return str.length...