State Pattern Exemplified in TypeScript An example implementation of the State Design Pattern provided in TypeScript. Please have a look at my blog for a complete discussion of the source.