Skip to content

Modules become stateless and testable because of dependency injection.

Notifications You must be signed in to change notification settings

jrmoller/TypeScript-with-DI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript-with-DI

TypeScript modules become stateless and testable because of dependency injection.

This architecture was presented to me by Rasmus - https://github.com/mindplay-dk - https://dev.to/mindplay - I am responsible for some of the comments.

Functional rather than OOP - without global state in modules

The trick is to not just write a function - you write a factory for your function also.

The factories reveals the dependencies of the created functions, so that the dependencies are easier to spot - don't look for things!

About

Modules become stateless and testable because of dependency injection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published