what's the difference between Record<string, any> and Record<string, unkown> in typescript?

Viewed 531

I am practicing with the type, and then encountered this kind of problem, I read some posts and still can’t figure it out why.

type A = (() => true) extends Record<string, any> ? true : false; // => true
type B = (() => true) extends Record<string, unknown> ? true : false; // false
1 Answers
Related