pusher-js: make available via global variable

Using Pusher via a CDN script tag registers the `Pusher` global. This change
allows for that global to be accessed/typed correctly.

See the docs on [UMD modules][1] for details.

[1]: https://www.typescriptlang.org/docs/handbook/modules.html#umd-modules
This commit is contained in:
Mark Florian
2017-10-31 12:39:36 +00:00
parent 00cb71a36a
commit 2007d950cd
+2
View File
@@ -228,4 +228,6 @@ declare namespace pusher {
declare var pusher: pusher.PusherStatic;
export as namespace pusher;
export = pusher;