Created
December 11, 2012 02:41
-
-
Save aaronpowell/4255474 to your computer and use it in GitHub Desktop.
Valid typescript
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
| var foo = 'baz'; | |
| var bar: any; | |
| bar = foo === 'true' ? true : foo === 'false' ? <any>false : foo; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution to the invalid typescript shown here. All you need to do is cast
falseas<any>so the compiler skips the check