mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
28 lines
559 B
TypeScript
28 lines
559 B
TypeScript
|
|
|
|
Bugsnag.apiKey = "API-KEY";
|
|
|
|
Bugsnag.releaseStage = "beta";
|
|
Bugsnag.appVersion = "2.4.56";
|
|
|
|
Bugsnag.user = <BugsnagUser>{
|
|
name: "Robert K. User",
|
|
email: "robbie@example.com"
|
|
};
|
|
|
|
Bugsnag.metaData = {
|
|
account: {
|
|
name: "Acme Co",
|
|
plan: "hacker"
|
|
}
|
|
}
|
|
|
|
Bugsnag.notifyException(new Error("Something broke"));
|
|
|
|
Bugsnag.notify("Serious Problem", "We are out of cookies");
|
|
|
|
Bugsnag.notify("Serious Problem",
|
|
"We are out of cookies",
|
|
{ remaining_snacks: ["carrots", "biscuits"] },
|
|
"error");
|