@types/reactjs-localstorage
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

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, and Dan Cox.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/reactjs-localstorage

Weekly Downloads

1,582

Version

1.0.2

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • types