Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 273 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 273 Bytes

Deep freeze, seal or preventExtensions with typescript types

Usage:

  1. Install package npm install deep-lock
  2. Usage:
import deepLock from 'deep-lock'

cosnt obj = { x: 1 } // { x: number }
const freezed = deepLock({ x: 1 }) // { readonly x: number }