Skip to content

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

Open
@sbyps

Description

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

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