Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Fix TypeScript types: add a return type to logger methods (#147)
Browse files Browse the repository at this point in the history
In PR #144, the types for the TypeScript `Logger` interface were added, however
the logger methods are missing return types.  This means TypeScript treats the
return as implicit `any`, and for projects configured to not allow implicit
`any`, that breaks the build.
  • Loading branch information
jacobwgillespie authored and bengourley committed Jun 12, 2018
1 parent 256b7d2 commit 71a07d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/bugsnag.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ declare namespace bugsnag {
}

interface Logger {
info();
warn();
error();
debug();
info(): void;
warn(): void;
error(): void;
debug(): void;
}

interface Endpoints {
notify: string;
sessions?: string;
Expand Down

0 comments on commit 71a07d9

Please sign in to comment.