Skip to content

Commit

Permalink
feat: add document-model shell return types
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Jul 4, 2023
1 parent a1a50f2 commit 33663f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/docs/api/model/document-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ importSchema(schema: IPublicTypeRootSchema): void;
* @param stage
* @returns
*/
exportSchema(stage: IPublicEnumTransformStage): any;
exportSchema(stage: IPublicEnumTransformStage): IPublicTypeRootSchema | undefined;
```

相关类型:[IPublicEnumTransformStage](https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/enum/transform-stage.ts)
相关类型:
- [IPublicEnumTransformStage](https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/enum/transform-stage.ts)
- [IPublicTypeRootSchema](https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/type/root-schema.ts)

### insertNode

Expand Down
2 changes: 1 addition & 1 deletion packages/shell/src/model/document-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class DocumentModel implements IPublicModelDocumentModel {
* @param stage
* @returns
*/
exportSchema(stage: IPublicEnumTransformStage = IPublicEnumTransformStage.Render): any {
exportSchema(stage: IPublicEnumTransformStage = IPublicEnumTransformStage.Render): IPublicTypeRootSchema | undefined {
return this[documentSymbol].export(stage);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/shell/model/document-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export interface IPublicModelDocumentModel<
* @param stage
* @returns
*/
exportSchema(stage: IPublicEnumTransformStage): any;
exportSchema(stage: IPublicEnumTransformStage): IPublicTypeRootSchema | undefined;

/**
* 插入节点
Expand Down

0 comments on commit 33663f9

Please sign in to comment.