Make the server proxy's properties visible to static analysis (#5345)

Currently, all properties of the server proxy object are created using
`Object.defineProperties` in the constructor, which means that IDEs like
VS Code can't analyze the file's static structure to determine what
properties there are and what types they have. Consequently, things like
autocomplete and go-to-definition don't work.

Fix that by removing the `ServerProxy` class altogether and exporting an
anonymous object with all properties defined statically.
main
Roman Donchenko 3 years ago committed by GitHub
parent 968b575ac3
commit 85b5547541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save