fix ambiguous typing

This commit is contained in:
RealBeepMcJeep 2023-08-30 07:41:26 -07:00
parent 210d76a621
commit 274b2e5009
1 changed files with 5 additions and 0 deletions

View File

@ -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;