Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Rename alias changes original import #818

@glmdgrielson

Description

@glmdgrielson

Given

// blah.rs
pub struct Parser<P>(pub P);
// lib.rs
use blah::Parser as ParserTrait;

Renaming ParserTrait to say Combo gives

// blah.rs
pub struct Combo<P>(pub P);
// lib.rs
use blah::Combo as Combo;

Compare that to

// blah.ts
export const blah = () => true;
export const what = () => false;
// index.ts
import { what as why } from "./blah.ts";

which turns into

export const blah = () => true;
export const what = () => false;
// index.ts
import { what as how } from "./blah.ts";

This is kind of annoying. What gives? (Also, feel free to make the title more descriptive)

EDIT: Checklist!:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions