Telling TS a value is definitely not null.
user!.name
interface User { name: string } function getName(user: User | null) { return user!.name; }