@tanzanite/deep-lock
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Deep freeze, seal or preventExtensions with typescript types

Usage:

  1. Install package yarn add @tanzanite/deep-lock
  2. Usage:
import deepLock from '@tanzanite/deep-lock';

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

Package Sidebar

Install

npm i @tanzanite/deep-lock

Weekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

12.2 kB

Total Files

9

Last publish

Collaborators

  • ironm00n