From 274b2e5009af5e11d9771498e9e9216f8406aa2b Mon Sep 17 00:00:00 2001 From: RealBeepMcJeep Date: Wed, 30 Aug 2023 07:41:26 -0700 Subject: [PATCH] fix ambiguous typing --- server.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.js b/server.js index ef435fd55..ad82a7e8f 100644 --- a/server.js +++ b/server.js @@ -4761,6 +4761,11 @@ async function downloadChubCharacter(id) { return { buffer, fileName, fileType }; } +/** + * + * @param {String} str + * @returns { { id: string, type: "character" | "lorebook" } | null } + */ function parseChubUrl(str) { const splitStr = str.split('/'); const length = splitStr.length;