Skip to content
프로젝트

torokmark/design_patterns_in_typescript

GitHub에서 보기

torokmark/design_patterns_in_typescript has 5,429 GitHub stars and 758 forks. GitHot measured +1 stars in 24 hours and +1 in 7 days. Last checked 2026-11-11 18:19 UTC. Last push 2023-09-05.

이 수치를 측정하는 방법

:triangular_ruler: Design pattern implementations in TypeScript

측정된 스타 증가

in 24h
+1
in 7 days
+1
in 15 days
업데이트 지연
in 1 month
업데이트 지연

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

관련 프로젝트 살펴보기