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

    1.0.0 • Public • Published

    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 }
    

    Install

    npm i deep-lock

    DownloadsWeekly Downloads

    67

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    11.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • ziimakc