Skip to content

Instantly share code, notes, and snippets.

@JWLangford
Created April 13, 2021 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JWLangford/b55684c6b1a12b17908635a446acc3a6 to your computer and use it in GitHub Desktop.
Save JWLangford/b55684c6b1a12b17908635a446acc3a6 to your computer and use it in GitHub Desktop.
interface IUser {
id: string
username: string;
email: string;
emailVerified: string;
created: string;
trialEnds: string;
billingInfo?: IBillingInfo;
posts?: IPost[];
}
interface IUserState {
id: string
username: string;
email: string;
emailVerified: string;
created: string;
trialEnds: string;
posts?: IPost[];
}
interface IBillingInfo {
lastFour: string
expiration: string
type: string
address1: string
address2: string
city: string
state: string
zip: string
}
interface IBillingState extends IBillingInfo {
//...can add any helpers here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment