This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+7
View File
@@ -0,0 +1,7 @@
/**
* https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie
* get cookie value by key
* @param {string} key
* @return {string}
*/
export default function get(key: string): string;
+9
View File
@@ -0,0 +1,9 @@
import set from './set';
import get from './get';
import remove from './remove';
declare const _default: {
set: typeof set;
get: typeof get;
remove: typeof remove;
};
export default _default;
+6
View File
@@ -0,0 +1,6 @@
/**
* https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie
* @param {string} key
* @param {any} [options]
*/
export default function remove(key: string, options?: Record<string, unknown>): void;
+7
View File
@@ -0,0 +1,7 @@
/**
* https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie
* @param {string} key
* @param {string | number} value
* @param {any} [options]
*/
export default function set(key: string, value: string | number, options?: Record<string, unknown>): void;