1.0.5 • Published 7 months ago

@types/sfcookies v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/sfcookies

Summary

This package contains type definitions for sfcookies (https://github.com/15Dkatz/sfcookies).

Details

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

index.d.ts

// Type definitions for sfcookies 1.0
// Project: https://github.com/15Dkatz/sfcookies
// Definitions by: Gabriel Arriagada <https://github.com/GNosii>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * Create an cookie.
 * @param name Name of the cookie.
 * @param value Value of the cookie.
 * @param date Expiry date, defaults to none.
 */
export function bake_cookie(name: string, value: string, date?: Date): void;

/**
 * Get the value of an cookie.
 * @param name Name of the cookie.
 * @returns cookie value or empty array if nothing.
 */
export function read_cookie(name: string): string | unknown[];

/**
 * Delete an cookie.
 * @param name Name of the cookie.
 */
export function delete_cookie(name: string): void;

Additional Details

  • Last updated: Mon, 14 Mar 2022 01:31:42 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Gabriel Arriagada.

1.0.2

11 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

10 months ago

1.0.1

2 years ago

1.0.0

2 years ago