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

Method registerResourceType

packages/workspace/src/workspace.ts:163–170  ·  view source on GitHub ↗
(resourceTypeModel: IPublicTypeResourceType)

Source from the content-addressed store, hash-verified

161 }
162
163 async registerResourceType(resourceTypeModel: IPublicTypeResourceType): Promise<void> {
164 const resourceType = new ResourceType(resourceTypeModel);
165 this.resourceTypeMap.set(resourceTypeModel.resourceName, resourceType);
166
167 if (!this.window && this.defaultResourceType && this._isActive) {
168 this.initWindow();
169 }
170 }
171
172 getResourceList() {
173 return this.resourceList;

Callers

nothing calls this directly

Calls 2

initWindowMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected