1.2.41 • Published 1 year ago

@types/angular-localforage v1.2.41

Weekly downloads
162
License
MIT
Repository
github
Last release
1 year ago

Installation

npm install --save @types/angular-localforage

Summary

This package contains type definitions for angular-localForage (https://github.com/ocombe/angular-localForage).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-localforage.

index.d.ts

// Type definitions for angular-localForage 1.2.2
// Project: https://github.com/ocombe/angular-localForage
// Definitions by: Stefan Steinhart <https://github.com/reppners>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

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

import * as angular from 'angular';

declare module 'angular' {
    export namespace localForage {

        interface LocalForageConfig {
            driver?: string | undefined;
            name?: string | number | undefined;
            version?: number | undefined;
            storeName?: string | undefined;
            description?: string | undefined;
        }

        interface ILocalForageProvider {
            config(config: LocalForageConfig): void;
            setNotify(onItemSet: boolean, onItemRemove: boolean): void;
        }

        interface ILocalForageService {
            driver(): LocalForageDriver;
            setDriver(name: string | string[]): angular.IPromise<void>;

            setItem(key: string, value: any): angular.IPromise<void>;
            setItem(keys: Array<string>, values: Array<any>): angular.IPromise<void>;

            getItem(key: string): angular.IPromise<any>;
            getItem(keys: Array<string>): angular.IPromise<Array<any>>;

            removeItem(key: string | Array<string>): angular.IPromise<void>;

            pull(key: string): angular.IPromise<any>;
            pull(keys: Array<string>): angular.IPromise<Array<any>>;

            clear(): angular.IPromise<void>;

            key(n: number): angular.IPromise<string>;

            keys(): angular.IPromise<string>;

            length(): angular.IPromise<number>;

            iterate<T>(iteratorCallback: (value: string | number, key: string) => T): angular.IPromise<T>;

            bind($scope: angular.IScope, key: string): angular.IPromise<any>;

            bind($scope: angular.IScope, config: {
                key: string;
                defaultValue?: any;
                scopeKey?: string | undefined;
                name?: string | undefined;
            }): angular.IPromise<any>;

            unbind($scope: angular.IScope, key: string, scopeKey?: string): void;

            createInstance(config: LocalForageConfig): ILocalForageService;
            instance(name: string): ILocalForageService;
        }
    }
}

Additional Details

Credits

These definitions were written by Stefan Steinhart.

1.2.41

1 year ago

1.2.40

1 year ago

1.2.38

1 year ago

1.2.39

1 year ago

1.2.37

3 years ago

1.2.36

7 years ago

1.2.35

7 years ago

1.2.34

7 years ago

1.2.33

8 years ago

1.2.32

8 years ago

1.2.31

8 years ago

1.2.30

8 years ago

1.2.29

8 years ago

1.2.28-alpha

8 years ago

1.2.27-alpha

8 years ago

1.2.25-alpha

8 years ago

1.2.24-alpha

8 years ago

1.2.23-alpha

8 years ago

1.2.22-alpha

8 years ago

1.2.21-alpha

9 years ago

1.2.20-alpha

9 years ago

1.2.15-alpha

9 years ago

1.2.14-alpha

9 years ago