Skip to content

kidker/design_patterns_in_typescript

 
 

Repository files navigation

Design Patterns in TypeScript

Here are the implementations of the following design patterns in TypeScript:

Creational

Structural Patterns

Behavioral Patterns

Compile the project

$ git clone https://github.com/torokmark/design_patterns_in_typescript.git
$ cd design_patterns_in_typescript
$ tsc

There is a new tsconfig.json file in the root direcotry which is responsible for the compiler options. As it is set the default target is Ecmascript5 now. Any additional options come here.

To compile only one pattern, use the following command.

$ cd design_patterns_in_typescript/visitor
$ tsc --target ES5 visitor.ts

Here if there is no --outFile option then the compiler generates the js counterpart into the current directory.

About

Design pattern implementations in TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.2%
  • JavaScript 1.8%