Y
Hacker News
new
|
ask
|
show
|
jobs
by
lexicality
2107 days ago
Typescript:
type NormalisedFloat = number
Admittedly it doesn't add any actual value checking, but it does convey the information when you look at the parameter definition.