Skip to content

Instantly share code, notes, and snippets.

@dsebastien
Last active May 16, 2020 17:18
Show Gist options
  • Save dsebastien/47f4caf69371aebbb9e42115dfe1cb10 to your computer and use it in GitHub Desktop.
Save dsebastien/47f4caf69371aebbb9e42115dfe1cb10 to your computer and use it in GitHub Desktop.
class Test {
x;
constructor(b: boolean ) {
if(b) {
this.x = 'hello'
} else {
this.x = 42;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment