@tinywork/glass 1.0.38 → 1.0.39

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 +18 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -440,8 +440,24 @@ declare global {
440
440
  ruleId?: string;
441
441
  }>;
442
442
  /** 新增文档 */
443
- addDoc(doc: DocSchema): IGlassExtensionInvokeResponse<void>;
444
- deleteDoc(apiId: string): IGlassExtensionInvokeResponse<void>;
443
+ addDoc(
444
+ doc: DocSchema,
445
+ options?: {
446
+ /** 是否触发缓存更新 */
447
+ hooks?: boolean;
448
+ /** 是否出发插件emit */
449
+ emit?: boolean;
450
+ },
451
+ ): IGlassExtensionInvokeResponse<void>;
452
+ deleteDoc(
453
+ apiId: string,
454
+ options?: {
455
+ /** 是否触发缓存更新 */
456
+ hooks?: boolean;
457
+ /** 是否出发插件emit */
458
+ emit?: boolean;
459
+ },
460
+ ): IGlassExtensionInvokeResponse<void>;
445
461
 
446
462
  getDoc(
447
463
  params: { apiId: string } | { pathname: string },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [