Created
January 2, 2017 21:09
-
-
Save dooman87/290ff6f846dbb986cd8a4de40f3e8f49 to your computer and use it in GitHub Desktop.
TS2532: Object is possibly 'undefined'.
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
function mapStateToProps(state: State, ownProps?: TApiKeyProps): TApiKeyProps { | |
return { | |
apiKeys: state.apiKey.data.apiKeys, | |
//ERROR: TS2532: Object is possibly 'undefined'. | |
onAddApiKey: ownProps.onAddApiKey, | |
//ERROR: TS2532: Object is possibly 'undefined'. | |
onDeleteApiKey: ownProps.onDeleteApiKey | |
} as TApiKeyProps | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment