Inject global variables in autocompletion

I have a set of variables, and constants, that I wish to be available in the Editor while the user is triggering autocompletion.
Let’s say I have const user = {age: 13, name: "Fred Nelo"}. How can I specify this const to be available in the global scope of the user?


If this is javascript-hint.js, you can use hintOptions: {globalScope: {...globals}}