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.js (https://github.com/marcuswestin/store.js/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/store/v1.
index.d.ts
// Type definitions for store.js 1.3.20
// Project: https://github.com/marcuswestin/store.js/
// Definitions by: Vincent Bortone <https://github.com/vbortone/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// 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: Mon, 25 Sep 2023 13:39:06 GMT
- Dependencies: none
- Global values:
store
Credits
These definitions were written by Vincent Bortone.