Vue is a versatile tool that I utilize for both service classes and components.
When it comes to reactive computeds, they prove to be incredibly beneficial. However, I often find myself wanting a clear way to differentiate between public interface computeds and those meant for internal calculations only within the service class.
In TypeScript, marking methods or properties as private is straightforward, but when it comes to defining computeds with get
, I am unsure of the best approach.
Would something like this be the most effective solution, or is there a better alternative?
private get myComputed(): number {
# ...
}