Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dougherty
· 1y ago · 0 comments
You have `as const`. Yes I know it's not enforced at runtime, but the type system does support it.
Comments
[–]
danenania
1y ago
There’s Object.freeze for enforcing at runtime.