mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #8035 from wilgert/master
add addPlugins() and Plugins to RavenStatic
This commit is contained in:
Vendored
+13
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user