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

1.1.2 • Public • Published

Installation

npm install --save @types/good-storage

Summary

This package contains type definitions for good-storage (https://github.com/ustbhuangyi/storage).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/good-storage.

index.d.ts

interface Storage {
    session: Storage;

    set(key: string, val?: any): any;

    get(key: string, def?: any): any;

    has(key: string): boolean;

    remove(key: string): void;

    clear(): void;

    getAll(): any;

    forEach(callback: () => void): void;
}

declare const storage: Storage;

export = storage;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Wang KaiLing.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/good-storage

Weekly Downloads

592

Version

1.1.2

License

MIT

Unpacked Size

3.19 kB

Total Files

5

Last publish

Collaborators

  • types