@tinywork/glass 1.0.17 → 1.0.18

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.
Files changed (2) hide show
  1. package/index.d.ts +15 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -390,6 +390,21 @@ declare global {
390
390
  getItem<T>(key: string): IGlassExtensionInvokeResponse<T>;
391
391
  setItem<T>(key: string, value: T): IGlassExtensionInvokeResponse<void>;
392
392
 
393
+ /** 保存cookie */
394
+ setCookie(params: {
395
+ name: string;
396
+ origin?: string;
397
+ path?: string;
398
+ value: string;
399
+ }): IGlassExtensionInvokeResponse<void>;
400
+
401
+ /** 获取cookie */
402
+ getCookie(params: {
403
+ name: string;
404
+ origin?: string;
405
+ path?: string;
406
+ }): IGlassExtensionInvokeResponse<string>;
407
+
393
408
  /** 保存文档组 */
394
409
  saveGroup(group: GroupSchema): IGlassExtensionInvokeResponse<void>;
395
410
  /** 批量保存文档组 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [