Merge pull request #8035 from wilgert/master

add addPlugins() and Plugins to RavenStatic
This commit is contained in:
Masahiro Wakame
2016-02-12 00:38:00 +09:00
+13
View File
@@ -57,6 +57,8 @@ interface RavenStatic {
/** Raven.js version. */
VERSION: string;
Plugins: RavenPlugin[];
/*
* Allow Raven to be configured as soon as it is loaded
@@ -92,6 +94,13 @@ interface RavenStatic {
* @return {Raven}
*/
install(): RavenStatic;
/*
* Adds a plugin to Raven
*
* @return {Raven}
*/
addPlugin(plugin: RavenPlugin, ...pluginArgs: any[]): RavenStatic;
/*
* Wrap code within a context so Raven can capture errors
@@ -179,3 +188,7 @@ interface RavenTransportOptions {
onSuccess: () => void;
onFailure: () => void;
}
interface RavenPlugin {
(raven: RavenStatic, ...args: any[]): RavenStatic;
}