Skip to content

Instantly share code, notes, and snippets.

@jasonchester
Created March 4, 2016 00:14
Show Gist options
  • Save jasonchester/18a805dc8bc78ec77679 to your computer and use it in GitHub Desktop.
Save jasonchester/18a805dc8bc78ec77679 to your computer and use it in GitHub Desktop.
interfaces POC
interface GemState {
application: ApplicationState,
currentStore: CurrentStoreState,
user: UserStoreState,
search: any,
forms: any,
viewData: any,
guests: any,
draftGuests: any
}
interface ApplicationState {
routing: any,
header: any,
login: any,
alerts: any
}
interface CurrentStoreState {
storeNumber: string,
logo: string,
brand: string
}
interface UserStoreState {
myBook: any,
notes: any,
recentlyViewedGuests: any,
}
// example guest model
interface Guest {
firstName: string,
lastName: string,
mailingAddress: Address,
billingAddress: Address,
alternateAddress: AlternateAddress,
}
interface Address {
}
interface AlternateAddress extends Address {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment