deep-lock
v1.0.0
Published
Deep freeze, seal or preventExtensions typescript helper function
Downloads
262
Maintainers
Readme
Deep freeze
, seal
or preventExtensions
with typescript types
Usage:
- Install package
npm install deep-lock
- Usage:
import deepLock from 'deep-lock`
cosnt obj = { x: 1 } // { x: number }
const freezed = deepLock({ x: 1 }) // { readonly x: number }