Course lesson
Preserve Displaying TypeScript Type Alias Names
TypeScript will sometimes display the original Primitive Type rather than the Type Alias that you've set. By appending & {} to your Type Alias, you can force TypeScript to display your Alias.
- Duration
- 1 min
- Access
- Included
- Transcript
- Retained from source evidence
TypeScript will sometimes display the original Primitive Type rather than the Type Alias that you've set. By appending & {} to your Type Alias, you can force TypeScript to display your Alias.