Last active
January 3, 2017 00:27
-
-
Save dooman87/1066327ecc41f816e6a1ffd85727c83b to your computer and use it in GitHub Desktop.
TS2322:Type undefined is not assignable to type number.
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
private usedMb(): number { | |
if (this.props.usedBytes != null) { | |
return (this.props.usedBytes / (1024 * 1024)); | |
} | |
//ERROR: TS2322:Type undefined is not assignable to type number. | |
return undefined; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment