mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
feat: add document-model shell return types
This commit is contained in:
parent
a1a50f2570
commit
cb2e05046f
@ -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
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ export interface IPublicModelDocumentModel<
|
||||
* @param stage
|
||||
* @returns
|
||||
*/
|
||||
exportSchema(stage: IPublicEnumTransformStage): any;
|
||||
exportSchema(stage: IPublicEnumTransformStage): IPublicTypeRootSchema | undefined;
|
||||
|
||||
/**
|
||||
* 插入节点
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user