Exercise #60: Brands And Type Predicates
Advanced Patterns · 03-type-predicates-assertion-functions
Go back to exercises
Open in TypeScript Playground
Goal
Goal: Make `isValidPassword` a type predicate that narrows to `Valid<PasswordValues>`.
Check Solution
Run "Check Solution" to validate your code in the browser.