▲ Experiment: making TypeScript immutable-by-default at evanhahn.com▼1 up and 0 down, posted by EvanHahn 4 days ago 1 comment
tracker1 1 day ago. link 1 point ▲ ▼It's not expressly a TS thing, this will likely require a PR change to the linter/checker... maybe submit a request for a Frozen<T> type to be added to the core. Aside, you can always use Object.freeze, but this can have odd side effects. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze