Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zip1234
· 9y ago · 0 comments
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?
Comments
[–]
snugbug
9y ago
It is. I guess then you have to use the --strictNullChecks compiler flag to get the rest of the benefits