design_patterns_in_typescript

:triangular_ruler: Design pattern implementations in TypeScript

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者torokmark/design_patterns_in_typescript
主編程語言TypeScript
編程語言TypeScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2013-07-07 21:49:06
推送於2023-09-05 02:44:07
最后一次提交
發布數0
用户参与
星數5.3k
關注者數173
派生數766
提交數81
已啟用問題?
問題數6
打開的問題數5
拉請求數9
打開的拉請求數2
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?