@tanzanite/deep-lock
v1.1.1
Published
Deep freeze, seal or preventExtensions typescript helper function
Downloads
30
Maintainers
Readme
Deep freeze
, seal
or preventExtensions
with typescript types
Usage:
- Install package
yarn add @tanzanite/deep-lock
- Usage:
import deepLock from '@tanzanite/deep-lock';
const obj = { x: 1 }; // { x: number }
const freezed = deepLock({ x: 1 }); // { readonly x: number }