microsoft/Bing-Maps-V8-TypeScript-Definitions

IModuleOptions errorCallback type doesn't match documentation

jordan-schneider opened this issue · 3 comments

In the documentation for ModuleOptions it says that errorCallback's type is function(errorMessage:string): void, but in this library it's type is () => void. Which is correct?

The documentation is correct.

Microsoft.Maps.loadModule('Dennis', { errorCallback: function (msg) { alert(msg) } });
> Dennis is not a supported module.

Thanks for merging in that pull request! Do you know when this will release to npm? Not sure what the repo's setup is for publishing updates.

Not sure if or when it will be merged into NPM. I moved off the Bing Maps team 4 years ago and have been focused on growing the Azure Maps platform.