mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [bristol-sentry] Added type declarations * [bristol-sentry] changed `any` to `object` for specificity * [bristol-sentry] Updated `definitions by` github link
21 lines
401 B
TypeScript
21 lines
401 B
TypeScript
import bristolSentry = require('bristol-sentry');
|
|
import * as raven from 'raven';
|
|
|
|
let target = bristolSentry({
|
|
client: {
|
|
dsn: "wow.this.works"
|
|
}
|
|
});
|
|
|
|
const log = bristolSentry.formatter({}, 'error', new Date(), [
|
|
"hey",
|
|
"whaddup",
|
|
new Error("AHAHAHA"),
|
|
"cool.",
|
|
{message: "I'm a banana!"}]
|
|
);
|
|
|
|
target = bristolSentry({
|
|
client: new raven.Client("cool dsn")
|
|
});
|