Closed urish closed 6 years ago
For instance, give the following input:
function optional(b?) { return b || 0; } console.log(optional() + optional(10));
typewiz would generate: function optional(b?: number|undefined) { while a valid code, the undefined type can be omitted, retaining the same semantics.
function optional(b?: number|undefined) {
undefined
For instance, give the following input:
typewiz would generate:
function optional(b?: number|undefined) {
while a valid code, theundefined
type can be omitted, retaining the same semantics.