Skip to content

TS issues around auth.user object (possibly undefined) #1380

Answered by RomainLanz
parker-codes asked this question in Help
Discussion options

You must be logged in to vote

Hey @parker-codes! 👋

TypeScript offers the ! syntax that force the variable to be defined.

         👇🏼
auth.user!.some_field

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@parker-codes
Comment options

@thetutlage
Comment options

Answer selected by parker-codes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants