You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
When an error occurs I expect to get a proper reference to aliased types:
file: 'file:///Users/andrejs.m/Sites/Typescript/type_alias/src/type-alias.ts'
severity: 'Error'
message: 'Type '{ list: { name: string; value: string; }[]; }' is not assignable to type 'ListProps'.
Types of property 'list' are incompatible.
Type '{ name: string; value: string; }[]' is not assignable to type 'ItemProps[]'.
Type '{ name: string; value: string; }' is not assignable to type 'ItemProps'.
Types of property 'value' are incompatible.
Type 'string' is not assignable to type 'number'.'
at: '3,7'
source: 'ts'
Actual behavior:
Instead I get actual type names:
file: 'file:///Users/andrejs.m/Sites/Typescript/type_alias/src/type-alias.ts'
severity: 'Error'
message: 'Type '{ list: { name: string; value: string; }[]; }' is not assignable to type 'Props'.
Types of property 'list' are incompatible.
Type '{ name: string; value: string; }[]' is not assignable to type 'Props[]'.
Type '{ name: string; value: string; }' is not assignable to type 'Props'.
Types of property 'value' are incompatible.
Type 'string' is not assignable to type 'number'.'
at: '3,7'
source: 'ts'
The text was updated successfully, but these errors were encountered:
andrejsm
changed the title
Type loses alias name when error occures
Imported type loses alias name when error occurs
Jun 13, 2017
DanielRosenwasser
changed the title
Imported type loses alias name when error occurs
Error messages report declared names rather than aliased names
Jun 15, 2017
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.3.4
Code https://github.com/andrejsm/ts-type-alias
Expected behavior:
When an error occurs I expect to get a proper reference to aliased types:
Actual behavior:
Instead I get actual type names:
The text was updated successfully, but these errors were encountered: