Hacker News new | ask | show | jobs
by dougherty 229 days ago
You have `as const`. Yes I know it's not enforced at runtime, but the type system does support it.
1 comments

There’s Object.freeze for enforcing at runtime.