@tinywork/glass 1.0.37 → 1.0.38

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 +4 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -425,6 +425,8 @@ declare global {
425
425
  options?: {
426
426
  /** 是否触发缓存更新 */
427
427
  hooks?: boolean;
428
+ /** 是否出发插件emit */
429
+ emit?: boolean;
428
430
  /** 是否根据文档自动生成rule规则 */
429
431
  defaultRule?: Partial<{
430
432
  name: string;
@@ -437,7 +439,8 @@ declare global {
437
439
  apiId: string;
438
440
  ruleId?: string;
439
441
  }>;
440
-
442
+ /** 新增文档 */
443
+ addDoc(doc: DocSchema): IGlassExtensionInvokeResponse<void>;
441
444
  deleteDoc(apiId: string): IGlassExtensionInvokeResponse<void>;
442
445
 
443
446
  getDoc(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [