From 87a496651e8640a03ee0c2c8009e6304ad852174 Mon Sep 17 00:00:00 2001 From: standy Date: Wed, 6 Sep 2017 20:46:06 +0300 Subject: [PATCH] Make $.cookie be no optional Very annoying to check if there is `cookie` in `$` Removes false warnings about this --- types/jquery.cookie/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jquery.cookie/index.d.ts b/types/jquery.cookie/index.d.ts index e00d891eec..b74cef8a14 100644 --- a/types/jquery.cookie/index.d.ts +++ b/types/jquery.cookie/index.d.ts @@ -92,7 +92,7 @@ interface JQueryStatic { /** * A simple, lightweight jQuery plugin for reading, writing and deleting cookies. */ - cookie?: JQueryCookieStatic; + cookie: JQueryCookieStatic; /** * Deletes a cookie * @param name Name of cookie to delete