Skip to content

Deep `freeze`, `seal` or `preventExtensions` with typescript types

License

Notifications You must be signed in to change notification settings

ziimakc/deep-lock

Repository files navigation

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 }

About

Deep `freeze`, `seal` or `preventExtensions` with typescript types

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published