Closed jcyuan closed 5 years ago
function default_compare<T>(a: T, b: T): boolean { return a < b; }
the error is
[ts] cant assign “(a: A, b: B) => boolean” to “(a: T, b: T) => boolean” arg “b” is not compatible with “b” cant assign “B” to type “A”
ts version 3.1.1
a8fab993e18a2b4ff5e547e0da5928a2fbd521ff
function default_compare<T>(a: T, b: T): boolean { return a < b; }
the error is