Closed
Description
I am not sure if it would be at all possible or feasible but I would really appreciate Hindley–Milner type signature support in TypeScript:
// stringLength :: String -> Number
const stringLength = word => word.length
I am writing a lot of code like this as I find it much easier to read but unfortunately TypeScript doesn’t understand this notation.
Some relevant reading: