Search this site
Embedded Files
Skip to main content
Skip to navigation
The Drake's Dashboard
Home
I am The Drake
Blogger
Newsletter
Ethan
Technical
Automation Resources
Interview
Typescript
Health
Cycling
Planning
Wedding
Investing
Home Project Planning
Shopping List
Todoist
Recipes
Drinks/Brewing
SB4
Wishlists
Shawna's Wishlist
The Drake's Dashboard
Home
I am The Drake
Blogger
Newsletter
Ethan
Technical
Automation Resources
Interview
Typescript
Health
Cycling
Planning
Wedding
Investing
Home Project Planning
Shopping List
Todoist
Recipes
Drinks/Brewing
SB4
Wishlists
Shawna's Wishlist
More
Home
I am The Drake
Blogger
Newsletter
Ethan
Technical
Automation Resources
Interview
Typescript
Health
Cycling
Planning
Wedding
Investing
Home Project Planning
Shopping List
Todoist
Recipes
Drinks/Brewing
SB4
Wishlists
Shawna's Wishlist
Typescript
Branding and Type-Tagging
Surviving the TypeScript Ecosystem — Part 6: Branding and Type-Tagging
Source on Github: TypeScript Demo
An example
The above all completely valid in the IDA and compiler.
If you do the same thing but include the branding. As shown in the example above, using branding, the IDE and compiler will complain about the type being passed in.
Type Guards and Discriminated Unions
Surviving the TypeScript Ecosystem — Part 5: Type Guards and Discriminated Unions
Source on Github: TypeScript Demo
Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse