@types/tough-cookie-file-store
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Installation

npm install --save @types/tough-cookie-file-store

Summary

This package contains type definitions for tough-cookie-file-store (https://github.com/ivanmarban/tough-cookie-file-store).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tough-cookie-file-store.

index.d.ts

import tough = require("tough-cookie");

export class FileCookieStore extends tough.Store {
    idx: {
        [domain: string]: {
            [path: string]: {
                [key: string]: tough.Cookie;
            };
        };
    };
    filePath: string;
    synchronous: boolean;

    constructor(filePath: string);

    findCookie(
        domain: string,
        path: string,
        key: string,
        cb: (err: null, cookie: tough.Cookie | null) => void,
    ): void;

    findCookies(
        domain: string,
        path: string,
        cb: (err: Error | null, cookie: tough.Cookie[]) => void,
    ): void;
    findCookies(
        domain: string,
        path: string,
        allowSpecialUseDomain: boolean,
        cb: (err: Error | null, cookie: tough.Cookie[]) => void,
    ): void;

    getAllCookies(cb: (err: Error | null, cookies: tough.Cookie[]) => void): void;

    putCookie(cookie: tough.Cookie, cb: (err: Error | null) => void): void;

    removeAllCookies(cb: (err: Error | null) => void): void;

    removeCookie(
        domain: string,
        path: string,
        key: string,
        cb: (err: Error | null) => void,
    ): void;

    removeCookies(
        domain: string,
        path: string,
        cb: (err: Error | null) => void,
    ): void;

    updateCookie(
        oldCookie: tough.Cookie,
        newCookie: tough.Cookie,
        cb: (err: Error | null) => void,
    ): void;
}

Additional Details

Credits

These definitions were written by Emily Marigold Klassen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/tough-cookie-file-store

Weekly Downloads

491

Version

2.0.4

License

MIT

Unpacked Size

5.64 kB

Total Files

5

Last publish

Collaborators

  • types