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
/
satisfies operator
Why is JSON.parse(raw) satisfies Settings not runtime validation?
from satisfies operator
TypeScript 6
intermediate
1 min
Why is JSON.parse(raw) satisfies Settings not runtime validation?
JSON.parse returns any by default, and satisfies emits no field checks.
satisfies validates only string fields, not numbers.
Runtime validation happens only when the result is assigned to let.
Settings must be changed from a type alias to an interface.
Check
Ask AI about this kata
Report an error
previous kata
Under TypeScript 6 strict checking, which statement about this declaration is correct?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload