@tinywork/glass 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare global {
|
|
|
22
22
|
|
|
23
23
|
type Cookie = {
|
|
24
24
|
name: string;
|
|
25
|
+
url: string;
|
|
25
26
|
domain?: string;
|
|
26
27
|
path?: string;
|
|
27
28
|
value?: string;
|
|
@@ -391,19 +392,12 @@ declare global {
|
|
|
391
392
|
setItem<T>(key: string, value: T): IGlassExtensionInvokeResponse<void>;
|
|
392
393
|
|
|
393
394
|
/** 保存cookie */
|
|
394
|
-
setCookie(params:
|
|
395
|
-
name: string;
|
|
396
|
-
origin?: string;
|
|
397
|
-
path?: string;
|
|
398
|
-
value: string;
|
|
399
|
-
}): IGlassExtensionInvokeResponse<void>;
|
|
395
|
+
setCookie(params: Cookie): IGlassExtensionInvokeResponse<void>;
|
|
400
396
|
|
|
401
397
|
/** 获取cookie */
|
|
402
|
-
getCookie(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
path?: string;
|
|
406
|
-
}): IGlassExtensionInvokeResponse<string>;
|
|
398
|
+
getCookie(
|
|
399
|
+
params: Omit<Cookie, "value">
|
|
400
|
+
): IGlassExtensionInvokeResponse<string>;
|
|
407
401
|
|
|
408
402
|
/** 保存文档组 */
|
|
409
403
|
saveGroup(group: GroupSchema): IGlassExtensionInvokeResponse<void>;
|