From 747401bedcd6cc8c09df1bcda64cfa6e9eb429c3 Mon Sep 17 00:00:00 2001 From: "knight.chen" Date: Sat, 4 Nov 2023 12:20:46 +0800 Subject: [PATCH] feat(types): update AssestsJson type --- .../types/src/shell/type/remote-component-description.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/types/src/shell/type/remote-component-description.ts b/packages/types/src/shell/type/remote-component-description.ts index 7ba532439..233720365 100644 --- a/packages/types/src/shell/type/remote-component-description.ts +++ b/packages/types/src/shell/type/remote-component-description.ts @@ -1,17 +1,21 @@ +import { Asset } from '../../assets'; import { IPublicTypeComponentMetadata, IPublicTypeReference } from './'; /** * 远程物料描述 */ export interface IPublicTypeRemoteComponentDescription extends IPublicTypeComponentMetadata { + /** * 组件描述导出名字,可以通过 window[exportName] 获取到组件描述的 Object 内容; */ exportName?: string; + /** * 组件描述的资源链接; */ - url?: string; + url?: Asset; + /** * 组件 (库) 的 npm 信息; */