As it says on the title. We have a lot of *Api objects all of which may potentially conflict with some web API in the future.
Consider moving all the APIs to e.g. electronApi to minimize the risk of name collision (and make refactoring the name to be changed as easy as possible on the off chance that the single global does become the name of a new API)
The keys of this new object would (well, could) be the names of the APIs, minus the Api suffix
As it says on the title. We have a lot of
*Api
objects all of which may potentially conflict with some web API in the future.Consider moving all the APIs to e.g.
electronApi
to minimize the risk of name collision (and make refactoring the name to be changed as easy as possible on the off chance that the single global does become the name of a new API)The keys of this new object would (well, could) be the names of the APIs, minus the
Api
suffix