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
/
Branded types
Given a correctly constructed UserId brand over number, which assignment is safe without …
from Branded types
TypeScript 6
intermediate
1 min
Given a correctly constructed UserId brand over number, which assignment is safe without another assertion?
Assign a UserId to a number.
Assign any number to a UserId.
Assign a ProductId to a UserId.
Assign parsed JSON directly to a UserId.
Check
Ask AI about this kata
Report an error
next kata
Why should addUsd(a, b) call the UsdCents constructor on a + b?
Quiz
A new version is available
Reload