# @types/reactjs-localstorage

> TypeScript definitions for reactjs-localstorage

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

## Install

```sh
npm install @types/reactjs-localstorage
pnpm add @types/reactjs-localstorage
yarn add @types/reactjs-localstorage
bun add @types/reactjs-localstorage
```

## 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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-11-07 |
| First published | 2021-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.2 (latest) — 2023-11-07
- 1.0.0 (ts3.4) — 2021-02-11
- 1.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/reactjs-localstorage`

# Summary
This package contains type definitions for reactjs-localstorage (https://github.com/null-none/react-localstorage).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactjs-localstorage.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactjs-localstorage/index.d.ts)
````ts
export namespace reactLocalStorage {
    function set(key: string, value: string | number | boolean): string;
    function get<T = string | number | boolean>(key: string, defaultValue?: T, silent?: boolean): T;
    function setObject(key: string, value: object): string;
    function getObject(key: string, defaultValue?: object, silent?: boolean): object;
    function clear(): void;
    function remove(key: string): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Rick Wilson](https://github.com/rwilson504), and [Dan Cox](https://github.com/powerappsdev).

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