-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 3.4.0-dev.20190305
Search Terms: export alias
Code
This is file of some-lib:
export { LongNameOfInnerClass as PublicNameClass } from './long-name-of-inner-class';This is other file, that import above lib:
import { PublicNameClass } from 'some-lib';
new PublicNameClass(); // Here hints is OK
new PublicNameClass(wrongArgument); // Error ref to LongNameOfInnerClassExpected behavior:
TypeScript hints have same "export as" aliases for working code and for errors.
Actual behavior:
TypeScript hints for the working code are different from the hints for errors.
Related Issues:
Not sure, but it seems that this issue has a similar problem: symbolToName does handle exports of namespaces
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingHelp WantedYou can do thisYou can do this