Created
March 4, 2016 00:14
-
-
Save jasonchester/18a805dc8bc78ec77679 to your computer and use it in GitHub Desktop.
interfaces POC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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