From 033c5d399a2b985afad32c1e4b0c16d764e248cd Mon Sep 17 00:00:00 2001 From: douira Date: Fri, 17 Sep 2021 00:11:35 +0200 Subject: [PATCH] fix(typings): add name field to cookie option (#4099) Reference: https://github.com/socketio/engine.io/blob/18a6eb89fbad618760c6bf81387ad421dfd3353b/lib/server.js#L355 --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index d42251ae49..785cefb57d 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -107,7 +107,7 @@ interface EngineOptions { * might be used for sticky-session. Defaults to not sending any cookie. * @default false */ - cookie: CookieSerializeOptions | boolean; + cookie: (CookieSerializeOptions & { name: string }) | boolean; /** * the options that will be forwarded to the cors module */