So you are forcing the user to write this in other situations:
if (maybe != null && maybe != undefined)
Coffeescript adds an existenial question mark operator, so the above looks like:
An alternative would be to write your own typed function:
ifBool(value, () => console.log('value is true'))
Of course, this no longer looks like a control structure. So an alternative feature request would be to ask for the ability to create control structures. This also seems outside the goals of TypedScript, but I am hoping that sweet.js can be integrated with
TypedScript to accomplish it.