@boost/commonFunctionsdeepFreezedeepFreeze CallabledeepFreeze<T>(obj: T): TCan be used to recursively freeze plain objects with Object.freeze. import { deepFreeze } from '@boost/common';const obj = deepFreeze({ foo: 123 });// Errors!obj.foo = 456;Type parametersT: object = object
Can be used to recursively freeze plain objects with
Object.freeze
.