Created
February 25, 2016 19:00
-
-
Save nikgraf/99052c9747a646561596 to your computer and use it in GitHub Desktop.
someOtherVariable doesn't trigger an error!?
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
type UnicornEditorState = { | |
editorState: any, | |
} | |
export default class UnicornEditor extends Component { | |
state: UnicornEditorState = { | |
editorState: EditorState.createEmpty(compositeDecorator), | |
someOtherVariable: 'Should throw an error?', | |
}; | |
render() { | |
return ( | |
<div> | |
Hello World | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mostly right, yea. It boils down to variance: