Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielleandro0801/typescript-design-patterns
Design Patterns examples in Typescript
https://github.com/gabrielleandro0801/typescript-design-patterns
design-patterns nodejs typescript
Last synced: 6 days ago
JSON representation
Design Patterns examples in Typescript
- Host: GitHub
- URL: https://github.com/gabrielleandro0801/typescript-design-patterns
- Owner: gabrielleandro0801
- License: mit
- Created: 2023-04-14T22:22:50.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-15T23:04:38.000Z (8 months ago)
- Last Synced: 2024-03-17T03:50:14.805Z (8 months ago)
- Topics: design-patterns, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Typescript Design Patterns
Repository with examples of Design Patterns in Typescript## Result
It is the pattern used to avoid throwing **exceptions** in the code.So, each method will return either an error or a success, where the client will decide how to handle the response.
## Singleton
It is the pattern used to prevent a class from being instantiated multiple times.The class owns a [getInstance] method and turns its constructor into private.
Then, the clients will use this method to get the class instance.
## Running :computer:
Run the **package.json** scripts.For example,
``` shell
npm run result-v1
```