Home
Blog
Photography
About
Tag: typescript
TypeScript: Supercharging enums with modules.
When using a language like Java you can use enums to do some very interesting things. For example a Java enum can look like so: public enum Directions{ EAST ("E"),...
TypeScript: How to check for types. Using tagged unions.
Working with TypeScript has been amazing. One of the most common things I've been finding my self checking was whether one variable is of a certain type. Let's look at an...