Skip to content

Commit 573504b

Browse files
meizilove258liujuping
authored andcommitted
fix: change typescript type export to export type
1 parent 9c545cc commit 573504b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/utils/src/asset.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { AssetItem, AssetType, AssetLevels, Asset, AssetList, AssetBundle, AssetLevel, AssetsJson } from '@alilc/lowcode-types';
1+
import { AssetType, AssetLevels, AssetLevel } from '@alilc/lowcode-types';
2+
import type { AssetItem, Asset, AssetList, AssetBundle, AssetsJson } from '@alilc/lowcode-types';
23
import { isCSSUrl } from './is-css-url';
34
import { createDefer } from './create-defer';
45
import { load, evaluate } from './script';
56

67
// API 向下兼容
7-
export { AssetType, AssetLevels, Asset, AssetList, AssetBundle, AssetLevel, AssetsJson } from '@alilc/lowcode-types';
8+
export { AssetType, AssetLevels, AssetLevel } from '@alilc/lowcode-types';
9+
export type { AssetItem, Asset, AssetList, AssetBundle, AssetsJson } from '@alilc/lowcode-types';
810

911
export function isAssetItem(obj: any): obj is AssetItem {
1012
return obj && obj.type;
1113
}
1214

13-
export type { AssetItem } from '@alilc/lowcode-types';
14-
1515
export function isAssetBundle(obj: any): obj is AssetBundle {
1616
return obj && obj.type === AssetType.Bundle;
1717
}

0 commit comments

Comments
 (0)