From a56d27f75221fdfdcff19ce65f85855dcf049c5e Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Tue, 8 Oct 2024 12:09:21 -0700 Subject: [PATCH] Update parse return type --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a773692..4e12462 100644 --- a/src/index.ts +++ b/src/index.ts @@ -93,8 +93,8 @@ export interface ParseOptions { export function parse( str: string, options?: ParseOptions, -): Record { - const obj: Record = new NullObject(); +): Record { + const obj: Record = new NullObject(); const len = str.length; // RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='. if (len < 2) return obj;