0.3.39 • Published 6 months ago
@types/ngstorage v0.3.39
Installation
npm install --save @types/ngstorage
Summary
This package contains type definitions for ngstorage (https://github.com/gsklee/ngStorage).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ngstorage.
index.d.ts
// Type definitions for ngstorage 0.3
// Project: https://github.com/gsklee/ngStorage
// Definitions by: Jakub Pistek <https://github.com/kubiq>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
export namespace ngStorage {
interface StorageService {
/**
* @return true if the storage service is supported by the browser.
*/
$supported(): boolean;
/**
* Adds default values to the store.
* Copies all properties of the default items to the store.
* If the store already has one of these properties it will skip it.
*
* @param items object holding the default values.
* @return the modified storage service.
*/
$default<T>(items: T): StorageService & T;
/**
* Removes all properties from the store.
*
* @param items optional object holding the default values to initialize the store after reset.
* @return the modified storage service.
*/
$reset<T>(items?: T): StorageService & T;
$apply(): void;
$sync(): void;
/**
* Access to the properties of the store.
*/
[key: string]: any;
}
interface StorageProvider extends angular.IServiceProvider {
get<T>(key: string): T | boolean;
set<T>(key: string, value: T): T | boolean;
remove(key: string): void;
supported(): boolean;
setKeyPrefix(prefix: string): void;
setSerializer(serializer: (value: any) => string): void;
setDeserializer(deserializer: (value: string) => any): void;
}
}
Additional Details
- Last updated: Fri, 09 Jul 2021 02:32:36 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Jakub Pistek.
0.3.39
6 months ago
0.3.38
7 months ago
0.3.37
3 years ago
0.3.36
7 years ago
0.3.35
7 years ago
0.3.34
7 years ago
0.3.33
8 years ago
0.3.32
8 years ago
0.3.31
8 years ago
0.3.30
8 years ago
0.3.29
8 years ago
0.3.28-alpha
8 years ago
0.3.26-alpha
8 years ago
0.3.25-alpha
8 years ago
0.3.24-alpha
8 years ago
0.3.23-alpha
8 years ago
0.3.22-alpha
8 years ago
0.3.21-alpha
8 years ago
0.3.16-alpha
8 years ago
0.3.15-alpha
8 years ago