3 ms·
What do you mean by "Swift-style"? TypeScript allows you to declare optional values on an object: interface Test{ number? myOptionalNumber; } Is that what y
by zip1234 10y ago
What do you mean by "Swift-style"? TypeScript allows you to declare optional values on an object:
interface Test{
number? myOptionalNumber;
}
Is that what you mean?
- snugbug 10y agoIt is. I guess then you have to use the --strictNullChecks compiler flag to get the rest of the benefits