Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
TypeScript
/
Type coverage
How does type-coverage treat a value explicitly typed as unknown?
from Type coverage
TypeScript 6
intermediate
1 min
How does type-coverage treat a value explicitly typed as unknown?
It counts as covered in ordinary and strict mode, but must still be narrowed before use.
It is always uncovered because unknown and any are aliases.
It counts as covered only after a type assertion.
It is ignored and removed from the denominator.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in profile formatting
Spot the bug
A new version is available
Reload