# @types/deep-freeze

> TypeScript definitions for deep-freeze

Latest version **0.1.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/deep-freeze
pnpm add @types/deep-freeze
yarn add @types/deep-freeze
bun add @types/deep-freeze
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/deep-freeze
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-freeze
- npm.io page: https://npm.io/package/@types/deep-freeze

## Recent versions

- 0.1.5 (latest) — 2023-11-07
- 0.1.2 (ts3.1) — 2019-08-05
- 0.1.1 (ts2.1) — 2017-06-05
- 0.0.29 (ts2.0) — 2016-09-19
- 0.1.4 — 2023-10-18
- 0.1.3 — 2023-09-22
- 0.1.0 — 2017-06-02
- 0.0.28 — 2016-07-14
- 0.0.27-alpha — 2016-07-08
- 0.0.26-alpha — 2016-07-04
- 0.0.25-alpha — 2016-07-02
- 0.0.24-alpha — 2016-07-01
- 0.0.23-alpha — 2016-07-01
- 0.0.22-alpha — 2016-05-25
- 0.0.21-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/deep-freeze/versions

## README

# Installation
> `npm install --save @types/deep-freeze`

# Summary
This package contains type definitions for deep-freeze (https://github.com/substack/deep-freeze).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-freeze.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-freeze/index.d.ts)
````ts
export = deepFreeze;

declare function deepFreeze<T>(a: T[]): ReadonlyArray<deepFreeze.DeepReadonly<T>>;
declare function deepFreeze<T extends Function>(f: T): T;
declare function deepFreeze<T>(o: T): deepFreeze.DeepReadonly<T>;

declare namespace deepFreeze {
    type DeepReadonly<T> = T extends (...args: any) => any ? T
        : { readonly [P in keyof T]: DeepReadonly<T[P]> };
}

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: none

# Credits
These definitions were written by [Bart van der Schoor](https://github.com/Bartvds), and [Aluan Haddad](https://github.com/aluanhaddad).

---
_Source: https://npm.io/package/@types/deep-freeze · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
