JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 64917
  • Score
    100M100P100Q135826F
  • License MIT

TypeScript definitions for store

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/store) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/store

    Summary

    This package contains type definitions for store (https://github.com/marcuswestin/store.js/).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/store/v1.

    index.d.ts

    // store.js exposes a simple API for cross browser local storage
    
    interface StoreJSStatic {
        enabled: boolean;
        disabled: boolean;
        version: string;
        set(key: string, value: any): any;
        get(key: string, defaultVal?: any): any;
        has(key: string): boolean;
        remove(key: string): void;
        clear(): void;
        transact(key: string, defaultVal: any, transactionFn?: (val: any) => void): void;
        getAll(): any;
        forEach(command: (key: string, value: any) => void): void;
        serialize(value: any): string;
        deserialize(value: string): any;
    }
    
    declare var store: StoreJSStatic;
    declare module "store" {
        export = store;
    }
    

    Additional Details

    • Last updated: Tue, 07 Nov 2023 20:08:00 GMT
    • Dependencies: none

    Credits

    These definitions were written by Vincent Bortone.