Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 

TypeScriptCommandPattern

Toying with the idea of a MediatR style command pattern in TypeScript.

Usage

See the index.ts file to see how a command is invoked with an expected TResponse.

Handlers

As seen in the example handler test-handler.ts, each handler is responsible with initializing and registering itself in a singleton manner.

A very simple Container

The only thing the container knows is to map an incoming request type name to a pre-registered handler.

About

Toying with the idea of a MediatR style command pattern in TypeScript.

Resources

Releases

No releases published

Packages

No packages published