Skip to content

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

Description

@sbyps

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';

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions