From 5e1897ddbd42e60251b21857fe3b743630548f8c Mon Sep 17 00:00:00 2001 From: Felix Mosheev <9304194+felixmosh@users.noreply.github.com> Date: Sun, 12 Jan 2025 12:03:55 +0200 Subject: [PATCH] fix: add noop for fatal type --- index.d.ts | 1 + index.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 061a62f..7883ebd 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,6 +2,7 @@ type Logger = { info(...args: unknown[]): unknown; warn(...args: unknown[]): unknown; error(...args: unknown[]): unknown; + fatal(...args: unknown[]): unknown; }; type LilHttpTerminator = { diff --git a/index.js b/index.js index 73daa36..5afe9fe 100644 --- a/index.js +++ b/index.js @@ -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`