From be503c7a6c97c3234586ddb906d85fe4419f8793 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Tue, 23 Apr 2024 23:21:47 +0200 Subject: [PATCH] fix(types): statusCode can be null --- .npmrc | 1 - lightweight/index.d.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index b5698c2..1b8554f 100644 --- a/.npmrc +++ b/.npmrc @@ -1,5 +1,4 @@ audit=false -enable-pre-post-scripts=true fund=false package-lock=false prefer-dedupe=true diff --git a/lightweight/index.d.ts b/lightweight/index.d.ts index 201f331..fd76e74 100644 --- a/lightweight/index.d.ts +++ b/lightweight/index.d.ts @@ -142,7 +142,7 @@ type MqlStatus = "success" | "fail" | "error"; export type MqlPayload = { status: MqlStatus; data: MqlResponseData; - statusCode: number; + statusCode?: number; headers: { [key: string]: string }; }