design_patterns_in_typescript

:triangular_ruler: Design pattern implementations in TypeScript

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownertorokmark/design_patterns_in_typescript
Primary LanguageTypeScript
Program languageTypeScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2013-07-07 21:49:06
Pushed At2023-09-05 02:44:07
Last Commit At
Release Count0
用户参与
Stargazers Count5.3k
Watchers Count173
Fork Count766
Commits Count81
Has Issues Enabled
Issues Count6
Issue Open Count5
Pull Requests Count9
Pull Requests Open Count2
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private