#
unknown
Unknown type handling in TypeScript
ProgrammingTypeScript: Generic Indexed Access & Unknown Mismatch
Why does TypeScript allow assigning to generic B['Child'] (unknown) but fail unknown extends B['Child'] in conditionals? Explore compiler rules, GitHub issues like #46076, and workarounds like tuple wrapping for consistent generics.
1 answer• 1 view