DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
TypeScript
With `interface Config { mode: string | number }`, what type does config.mode have after `{ mode: "dark" } satisfies Config`?
A
string | number — widened to Config's full declared type
B
string — its own specific inferred type, since satisfies validates without widening to the declared type
C
"dark" — always the exact literal, regardless of the declared type
D
This fails to compile
Check Answer