Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/angular-cookies

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/angular-cookies

TypeScript definitions for angular-cookies

  • 1.8.4
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/angular-cookies

Summary

This package contains type definitions for angular-cookies (http://angularjs.org).

Details

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

index.d.ts

declare var _: string;
export = _;

import * as angular from "angular";

declare module "angular" {
    /**
     * ngCookies module (angular-cookies.js)
     */
    namespace cookies {
        /**
         * CookiesProvider
         * see https://docs.angularjs.org/api/ngCookies/provider/$cookiesProvider
         */
        interface ICookiesProvider {
            /**
             * Object containing default options to pass when setting cookies.
             */
            defaults: ICookiesOptions;
        }

        /**
         * Cookies options
         * see https://docs.angularjs.org/api/ngCookies/provider/$cookiesProvider#defaults
         */
        interface ICookiesOptions {
            /**
             * The cookie will be available only for this path and its sub-paths.
             * By default, this would be the URL that appears in your base tag.
             */
            path?: string | undefined;
            /**
             * The cookie will be available only for this domain and its sub-domains.
             * For obvious security reasons the user agent will not accept the cookie if the
             * current domain is not a sub domain or equals to the requested domain.
             */
            domain?: string | undefined;
            /**
             * String of the form "Wdy, DD Mon YYYY HH:MM:SS GMT" or a Date object
             * indicating the exact date/time this cookie will expire.
             */
            expires?: string | Date | undefined;
            /**
             * The cookie will be available only in secured connection.
             */
            secure?: boolean | undefined;
            /**
             * Prevents the browser from sending the cookie along with cross-site requests.
             * Accepts the values "lax" and "strict".
             */
            samesite?: string | undefined;
        }

        /**
         * CookiesService
         * see https://docs.angularjs.org/api/ngCookies/service/$cookies
         */
        interface ICookiesService {
            get(key: string): string;
            getObject(key: string): any;
            getObject<T>(key: string): T;
            getAll(): any;
            put(key: string, value: string, options?: ICookiesOptions): void;
            putObject(key: string, value: any, options?: ICookiesOptions): void;
            remove(key: string, options?: ICookiesOptions): void;
        }
    }
}

Additional Details

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

Credits

These definitions were written by Diego Vilar, and Anthony Ciccarello.

FAQs

Package last updated on 06 Nov 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc