Effect CommunityEC
Effect Community3y ago
11 replies
Kristian Notari

Unexpected Type Check Result in TypeScript

Isn't this a source of errors?
type A = { a?: string | undefined }
type Json = { [K in string]: string }
type Check = A extends Json ? true : false // true while I expected false
Was this page helpful?