In my typescript class, I am utilizing a Proxy
to intercept and dispatch on get
and set
operations. The functionality is working smoothly and I have successfully enabled auto-completion in vscode for these properties. However, when I switch to the chrome dev tools, the properties managed by the Proxy
do not appear in the autocomplete feature of the js console or in the 'intellisense' list that appears when typing the .
I have implemented ownKeys
in the proxy
but it seems insufficient. It made me wonder about how the auto-completion is integrated into the chrome dev tools.
Is there another approach I should take to ensure my properties are included as auto-completion options in the dev tools? I understand that if I were to implement them all as actual get
/set
pairs they would show up, but this is not feasible due to reasons beyond the scope of this question.
If I must use a Proxy
for implementing get
/set
for certain properties, is there a method to make them visible as auto-complete suggestions in the chrome dev tools js console?