@types/js-cookie
Advanced tools
Comparing version 2.0.28 to 2.1.0
@@ -1,5 +0,7 @@ | ||
// Type definitions for js-cookie v2.0 | ||
// Type definitions for js-cookie 2.1 | ||
// Project: https://github.com/js-cookie/js-cookie | ||
// Definitions by: Theodore Brown <https://github.com/theodorejb> | ||
// BendingBender <https://github.com/BendingBender> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
@@ -42,3 +44,3 @@ declare namespace Cookies { | ||
*/ | ||
set(name: string, value: string | any, options?: CookieAttributes): void; | ||
set(name: string, value: string | object, options?: CookieAttributes): void; | ||
@@ -48,3 +50,3 @@ /** | ||
*/ | ||
get(name: string): string; | ||
get(name: string): string | undefined; | ||
@@ -60,3 +62,3 @@ /** | ||
*/ | ||
getJSON(name: string): any; | ||
getJSON(name: string): object; | ||
@@ -91,9 +93,11 @@ /** | ||
*/ | ||
withConverter(converter: (value: string, name: string) => string): CookiesStatic; | ||
withConverter(converter: CookieConverter | { write: CookieConverter; read: CookieConverter; }): CookiesStatic; | ||
} | ||
type CookieConverter = (value: string, name: string) => string; | ||
} | ||
declare var Cookies: Cookies.CookiesStatic; | ||
declare const Cookies: Cookies.CookiesStatic; | ||
export = Cookies; | ||
export as namespace Cookies; |
{ | ||
"name": "@types/js-cookie", | ||
"version": "2.0.28", | ||
"description": "TypeScript definitions for js-cookie v2.0", | ||
"version": "2.1.0", | ||
"description": "TypeScript definitions for js-cookie", | ||
"license": "MIT", | ||
"author": "Theodore Brown <https://github.com/theodorejb>", | ||
"contributors": [ | ||
{ | ||
"name": "Theodore Brown", | ||
"url": "https://github.com/theodorejb" | ||
}, | ||
{ | ||
"name": "BendingBender", | ||
"url": "https://github.com/BendingBender" | ||
} | ||
], | ||
"main": "", | ||
@@ -14,4 +23,4 @@ "repository": { | ||
"dependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "c38457292d51f4e4c200c41179cc1f70364620104c197a003b1aa42944bc9059" | ||
"typesPublisherContentHash": "884a32e668b25d2896df3d7afdedbf198fda16f34e3411d5950d50ce209405b4", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -5,15 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for js-cookie v2.0 (https://github.com/js-cookie/js-cookie). | ||
This package contains type definitions for js-cookie (https://github.com/js-cookie/js-cookie). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/js-cookie | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-cookie | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: UMD | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Last updated: Wed, 23 Aug 2017 17:50:59 GMT | ||
* Dependencies: none | ||
* Global values: Cookies | ||
# Credits | ||
These definitions were written by Theodore Brown <https://github.com/theodorejb>. | ||
These definitions were written by Theodore Brown <https://github.com/theodorejb>, BendingBender <https://github.com/BendingBender>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5689
0
83
17