Skip to content

Instantly share code, notes, and snippets.

@JWLangford
Created April 13, 2021 12:00
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