MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / importSchema

Method importSchema

packages/workspace/src/window.ts:95–106  ·  view source on GitHub ↗
(schema: any)

Source from the content-addressed store, hash-verified

93 }
94
95 async importSchema(schema: any) {
96 const newSchema = await this.resource.import(schema);
97
98 if (!newSchema) {
99 return;
100 }
101
102 Object.keys(newSchema).forEach(key => {
103 const view = this.editorViews.get(key);
104 view?.project.importSchema(newSchema[key]);
105 });
106 }
107
108 async save() {
109 const value: any = {};

Callers

nothing calls this directly

Calls 4

importMethod · 0.65
forEachMethod · 0.65
getMethod · 0.65
importSchemaMethod · 0.65

Tested by

no test coverage detected