Created
March 27, 2018 19:44
-
-
Save TitasGailius/151b1d9577f57c59c570fa2f7df35915 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 { | |
foo: String | |
} | |
export default class AuthModule implements Module<FooState> { | |
state() { | |
return { | |
foo: 'bar' // <-- Undetected property type | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment