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

Function assetItem

packages/utils/src/asset.ts:41–51  ·  view source on GitHub ↗
(type: AssetType, content?: string | null, level?: AssetLevel, id?: string)

Source from the content-addressed store, hash-verified

39 "view2.js <device selector>"
40] */
41export function assetItem(type: AssetType, content?: string | null, level?: AssetLevel, id?: string): AssetItem | null {
42 if (!content) {
43 return null;
44 }
45 return {
46 type,
47 content,
48 level,
49 id,
50 };
51}
52
53export function mergeAssets(assets: IPublicTypeAssetsJson, incrementalAssets: IPublicTypeAssetsJson): IPublicTypeAssetsJson {
54 if (incrementalAssets.packages) {

Callers 4

parseAssetFunction · 0.85
host.tsFile · 0.85
buildLibraryMethod · 0.85
parseAssetListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…