mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
add RavenPlugin interface
This commit is contained in:
8
ravenjs/ravenjs.d.ts
vendored
8
ravenjs/ravenjs.d.ts
vendored
@@ -58,7 +58,7 @@ interface RavenStatic {
|
||||
/** Raven.js version. */
|
||||
VERSION: string;
|
||||
|
||||
Plugins: any;
|
||||
Plugins: RavenPlugin[];
|
||||
|
||||
/*
|
||||
* Allow Raven to be configured as soon as it is loaded
|
||||
@@ -100,7 +100,7 @@ interface RavenStatic {
|
||||
*
|
||||
* @return {Raven}
|
||||
*/
|
||||
addPlugin(plugin: any, ...pluginArgs: any[]): RavenStatic;
|
||||
addPlugin(plugin: RavenPlugin, ...pluginArgs: any[]): RavenStatic;
|
||||
|
||||
/*
|
||||
* Wrap code within a context so Raven can capture errors
|
||||
@@ -188,3 +188,7 @@ interface RavenTransportOptions {
|
||||
onSuccess: () => void;
|
||||
onFailure: () => void;
|
||||
}
|
||||
|
||||
interface RavenPlugin {
|
||||
(raven: RavenStatic, ...args: any[]): RavenStatic;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user