torokmark/design_patterns_in_typescript

📐 Design pattern implementations in TypeScript

TypeScript

5,428

80 commits

updated Sep 5, 2023

See the code

README

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 tsconfig.json file in the root directory which is responsible for the compiler options.

As it is set the default target is Ecmascript5 now.

Any additional options come here.

By default the output is a patterns.js file.

To compile only one pattern, use the following command.

$ cd design_patterns_in_typescript/visitor
$ tsc --target ES5 --module system --outFile visitor.js visitor.ts

Execute the project

After the compilation of the project, a patterns.js is generated by default. Executing the file is:

node patterns.js
adapter
builder
command
composite
design-patterns
facade
typescript

torokmark/design_patterns_in_typescript

📐 Design pattern implementations in TypeScript

TypeScript

5,428

80 commits

updated Sep 5, 2023

See the code

README

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 tsconfig.json file in the root directory which is responsible for the compiler options.

As it is set the default target is Ecmascript5 now.

Any additional options come here.

By default the output is a patterns.js file.

To compile only one pattern, use the following command.

$ cd design_patterns_in_typescript/visitor
$ tsc --target ES5 --module system --outFile visitor.js visitor.ts

Execute the project

After the compilation of the project, a patterns.js is generated by default. Executing the file is:

node patterns.js
adapter
builder
command
composite
design-patterns
facade
typescript

Significant stargazers

(top 24 of 31)

Hyang-Ah Hana Kim

208 followers · starred Apr 2020

Zearin

79 followers · starred May 2026

Ulugbek Abdullaev

154 followers · starred Sep 2018

Yang Cao

59 followers · starred Nov 2015