Created
March 27, 2018 16:36
-
-
Save TitasGailius/f9fcbf3e35c58b88e32921395ff72b43 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export interface Module<State> { | |
state: (() => State) | |
} | |
export interface FooState { | |
user: String | |
} | |
const module: Module<FooState> = { | |
state() { | |
return { | |
user: 'Titas', | |
foo: 'bar' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment