Command pattern in typescript is something that will happen a lot in the context interface that needs to execute something when a person is doing an event. Even when you need to queue all the commands this design pattern is very powerfull. Learning from design patterns will make a good programmer out of you.
https://gist.github.com/jorishermans/...