unknown isn’t a bad type.
It honestly says: “I haven’t verified this value yet.”
as User only changes what TypeScript believes. It validates nothing at runtime.
That’s where type guards help. 🛡️

unknown isn’t a bad type.
It honestly says: “I haven’t verified this value yet.”
as User only changes what TypeScript believes. It validates nothing at runtime.
That’s where type guards help. 🛡️