npm.io
0.1.37 • Published 2 years ago

@types/angularlocalstorage

Licence
MIT
Version
0.1.37
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/angularlocalstorage

Summary

This package contains type definitions for angularlocalstorage (https://github.com/agrublev/angularLocalStorage).

Details

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

index.d.ts

/// <reference types="angular"/>

import * as ng from "angular";

declare module "angular" {
    export namespace localStorage {
        interface ILocalStorageService {
            set(key: string, value: any): any;
            get(key: string): any;
            remove(key: string): boolean;
            clearAll(): void;

            bind($scope: ng.IScope, key: string, opts?: {
                defaultValue?: any;
                storeName?: string | undefined;
            }): any;
            unbind($scope: ng.IScope, key: string, storeName?: string): void;
        }
    }
}

Additional Details

  • Last updated: Tue, 30 Jan 2024 2145 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Horiuchi_H.