DefinitelyTyped/types/bristol-sentry/bristol-sentry-tests.ts
Elliott Campbell f346ea3bae Add [bristol-sentry] type declarations (#38043)
* [bristol-sentry] Added type declarations

* [bristol-sentry] changed `any` to `object` for specificity

* [bristol-sentry] Updated `definitions by` github link
2019-09-05 17:25:22 -07:00

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")
});