I am looking for a solution that is going to be for typescript code in the most OOP fashion I can.
I have a set of functions that I want to run against one single object containing data. Each function will transform that particular object, some of them will add keys to it with predefined values, some will delete keys, some will update existing keys to different values. Also, have a predefined list/map with all functions names I want to run for this transformation, and once they all ran I can call transformation complete. Don't want to use nested callbacks for this as I would in "functional" programming for JS.
Note: I am pretty new to TypeScript and OOP in general, so any suggestions and help are highly appreciated.
Aucun commentaire:
Enregistrer un commentaire