This commit is contained in:
darenhsu
2022-07-17 13:16:16 +08:00
parent 84759556ff
commit befd344ab0
28070 changed files with 4008428 additions and 1 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;