Socket
Socket
Sign inDemoInstall

@types/angular-storage

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/angular-storage

TypeScript definitions for angular-storage


Version published
Weekly downloads
413
increased by44.91%
Maintainers
1
Install size
183 kB
Created
Weekly downloads
 

Readme

Source

Installation

npm install --save @types/angular-storage

Summary

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

Details

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

index.d.ts

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

declare var _: string;
export = _;

import * as angular from "angular";

declare module "angular" {
    namespace a0.storage {
        interface IStoreService extends INamespacedStoreService {
            /**
             * Returns a namespaced store
             *
             * @param {String} namespace - The namespace
             * @param {String} storage - The name of the storage service. Defaults to local storage.
             * @param {String} delimiter - The delimiter to use to separate the namespace and the keys.
             * @returns {INamespacedStoreService}
             */
            getNamespacedStore(namespace: string, storage?: string, delimiter?: string): INamespacedStoreService;
        }

        interface INamespacedStoreService {
            /**
             * Sets a new value to the storage with the key name. It can be any object.
             *
             * @param {String} name - The key name for the location of the value
             * @param value - The value to store
             */
            set(name: string, value: any): void;

            /**
             * Returns the saved value with they key name.
             *
             * @param {String} name - The key name for the location of the value
             * @returns The saved value; if you saved an object, you get an object
             */
            get(name: string): any;

            /**
             * Deletes the saved value with the key name
             *
             * @param {String} name - The key name for the location of the value to remove
             */
            remove(name: string): void;
        }

        interface IStoreProvider {
            /**
             * Sets the storage.
             *
             * @param {String} storage - The storage name
             */
            setStore(storage: string): void;
        }
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Matthew DeKrey.

FAQs

Last updated on 06 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc