Skip to content

Commit

Permalink
fix: add noop for fatal type
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jan 12, 2025
1 parent 4c7d1a3 commit 5e1897d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ type Logger = {
info(...args: unknown[]): unknown;
warn(...args: unknown[]): unknown;
error(...args: unknown[]): unknown;
fatal(...args: unknown[]): unknown;
};

type LilHttpTerminator = {
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class Graceful {
this.config.logger = {
info() {},
warn() {},
error() {}
error() {},
fatal() {}
};

// if lilHttpTerminator does not have a logger set then re-use `this.config.logger`
Expand Down

0 comments on commit 5e1897d

Please sign in to comment.