Skip to content

T: Type "T" has multiple definitions #615

@mdesousa

Description

@mdesousa

you get the error T: Type "T" has multiple definitions in this example:

import { T as OtherT } from './other.js';

export type T = OtherT & { a: string };

i think the problem is that the generator is attempting the name the imported type as T, which clashes with the type defined locally. would it be possible to name the type with the alias OtherT to prevent conflicts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions