|
2 | 2 |
|
3 | 3 | Design pattern with Typescript
|
4 | 4 |
|
5 |
| -## Table Of Content |
6 |
| - |
7 |
| -<!-- TOC --> |
8 |
| - |
9 |
| -* [Typescript Design Pattern](#typescript-design-pattern) |
10 |
| - * [Table Of Content](#table-of-content) |
11 |
| - * [Install](#install) |
12 |
| - * [Run](#run) |
13 |
| - * [Abstract Factory](#abstract-factory) |
14 |
| - * [Factory Method](#factory-method) |
15 |
| - * [Singleton](#singleton) |
16 |
| - * [Adapter](#adapter) |
17 |
| - * [Composite](#composite) |
18 |
| - * [Decorator](#decorator) |
19 |
| - * [Proxy](#proxy) |
20 |
| - * [Command](#command) |
21 |
| - * [Observer](#observer) |
22 |
| - * [Strategy](#strategy) |
23 |
| - * [Template Method](#template-method) |
24 |
| - |
25 |
| -<!-- /TOC --> |
| 5 | +## Table Of Contents |
| 6 | + |
| 7 | +- [ ] [Abstract Factory](#abstract-factory) |
| 8 | +- [x] [Factory Method](#factory-method) |
| 9 | +- [x] [Singleton](#singleton) |
| 10 | +- [ ] [Adapter](#adapter) |
| 11 | +- [ ] [Composite](#composite) |
| 12 | +- [ ] [Decorator](#decorator) |
| 13 | +- [ ] [Proxy](#proxy) |
| 14 | +- [ ] [Command](#command) |
| 15 | +- [ ] [Observer](#observer) |
| 16 | +- [ ] [Strategy](#strategy) |
| 17 | +- [ ] [Template Method](#template-method) |
| 18 | +- [ ] [Closure](#closure) |
26 | 19 |
|
27 | 20 | ## Install
|
28 | 21 |
|
@@ -89,7 +82,7 @@ hero.sayHi(); // I'm Ironman., from Earth.
|
89 | 82 |
|
90 | 83 | ## Singleton
|
91 | 84 |
|
92 |
| -Singleton.ts |
| 85 | +[Singleton.ts](src/singleton.ts) |
93 | 86 |
|
94 | 87 | ```ts
|
95 | 88 | export default class Singleton {
|
@@ -142,3 +135,5 @@ console.log(singleton.getText, singleton2.getText); // I'm second. I'm second.
|
142 | 135 | ## Strategy
|
143 | 136 |
|
144 | 137 | ## Template Method
|
| 138 | + |
| 139 | +## [Closure](src/closure/README.md) |
0 commit comments