Skip to content

Instantly share code, notes, and snippets.

@marcelblijleven
Created October 11, 2019 10:46
Show Gist options
  • Save marcelblijleven/965af6ddb8526c66914f4862bd408730 to your computer and use it in GitHub Desktop.
Save marcelblijleven/965af6ddb8526c66914f4862bd408730 to your computer and use it in GitHub Desktop.
User class
class User {
email:string
password:string
hasLoyaltyCard: boolean
constructor(email:string, password:string, hasLoyaltyCard?:boolean) {
this.email = email
this.password = password
this.hasLoyaltyCard = !!hasLoyaltyCard
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment