utilities-store

from what information I've read. I should think of this as more of a service? which would allow the use of all files inside the store to be used with strings instead of importing them for each command, making the command cleaner and shorter?
Solution:
You can expose functions to this.container.utilities.<your thing>. As per the readme example it would be this.container.utilities.sum.add(...). If you want to put raw strings in there use public class properties or getters. So yes I suppose you're right. It's a bit of a niche thing for people who don't like many imports. I don't use it personally....
Jump to solution
2 Replies
Solution
Favna
Favna6d ago
You can expose functions to this.container.utilities.<your thing>. As per the readme example it would be this.container.utilities.sum.add(...). If you want to put raw strings in there use public class properties or getters. So yes I suppose you're right. It's a bit of a niche thing for people who don't like many imports. I don't use it personally.
Xndo
XndoOP6d ago
I thought about giving it a try, if it made it easier then using a service setup. though doing business logic as a service is a good way to go. I'll try to read up on it more and see if this is something I want to move to. Thank you

Did you find this page helpful?