Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 swc 编译报 type 类型错误 #1094

Open
sbyps opened this issue Sep 26, 2024 · 1 comment
Open

使用 swc 编译报 type 类型错误 #1094

sbyps opened this issue Sep 26, 2024 · 1 comment

Comments

@sbyps
Copy link

sbyps commented Sep 26, 2024

https://swc.rs/docs/migrating-from-tsc#isolatedmodules-true

export.ts 中 export {default as Point, PointLike} from './core/Point';

PointLike 是一个 interface,应该是 export type { PointLike } from './core/Point';

@Jancheng-z
Copy link

Jancheng-z commented Sep 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants