Skip to content

Instantly share code, notes, and snippets.

@abustamam
Created April 25, 2019 22:06
Show Gist options
  • Save abustamam/b18c753e741e0b579a9cc57c39b32198 to your computer and use it in GitHub Desktop.
Save abustamam/b18c753e741e0b579a9cc57c39b32198 to your computer and use it in GitHub Desktop.
type IContext =
| { isLoggedIn: boolean; loggedInUser?: any, initialized: boolean, account?: undefined }
| { isLoggedIn: false; loggedInUser?: undefined, initialized: boolean, account?: undefined }
| { isLoggedIn: true; loggedInUser?: any, initialized: boolean, account?: undefined }
| { isLoggedIn: boolean; loggedInUser?: any, initialized: boolean; account?: undefined }
| { isLoggedIn: boolean; loggedInUser?: any, initialized: false; account?: undefined }
| { isLoggedIn: boolean; loggedInUser?: any, initialized: true; account?: Account }
@hackape
Copy link

hackape commented Apr 26, 2019

You need to justify why, for example, { isLoggedIn: false; loggedInUser?: undefined; initialized: true; account?: Account } is not included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment