add addPlugins() and Plugins to RavenStatic

This commit is contained in:
Wilgert Velinga
2016-02-10 12:55:18 +01:00
parent 1a5b2a729d
commit 45967547e8
+9
View File
@@ -57,6 +57,8 @@ interface RavenStatic {
/** Raven.js version. */
VERSION: string;
Plugins: any;
/*
* 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: any, ...pluginArgs: any[]): RavenStatic;
/*
* Wrap code within a context so Raven can capture errors