Last active
December 19, 2019 15:18
-
-
Save joethephish/e22b53f0ae4212137dca1bb900b6f1f1 to your computer and use it in GitHub Desktop.
Default param causes ts-check to fail
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
| const Obj = { | |
| x: 1, | |
| f: (y = Obj.x) => {} | |
| }; | |
| Obj.x; // No definition found for 'x' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hah, nice! Happy holidays!