@fishx/module-renderer
Version:
Support render Fish, Fishx module
19 lines (18 loc) • 441 B
TypeScript
type AssetItem = {
type: string;
content: string;
'data-main'?: string;
};
type AssetLists = {
jsList: AssetItem[];
cssList: AssetItem[];
};
/**
* 获取远程app的资源
*/
export declare function getEntryAssets(container: HTMLElement | null, entry: string): Promise<AssetLists>;
/**
* 把 js & css 资源标签添加到head中
*/
export declare function appendAssets(assets: AssetLists): Promise<void>;
export {};