Skip to content

Commit

Permalink
chore: 修复 import type 导致网站无法启动,更新为 export type (#3350)
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky committed Mar 29, 2021
1 parent 292a7b0 commit 35e37bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export { registerAnimation, getAnimation } from './animate/animation';
export { LAYER, DIRECTION } from './constant';

// 因为 typescript 部分版本不支持 export * as 语法。
import type * as Types from './interface';
export { Types };
import * as Types from './interface';
export type { Types };

export { IGroup, ShapeAttrs, Coordinate, Scale, ScaleConfig } from './dependents';

Expand Down

0 comments on commit 35e37bd

Please sign in to comment.