fix ambiguous typing
This commit is contained in:
parent
210d76a621
commit
274b2e5009
|
@ -4761,6 +4761,11 @@ async function downloadChubCharacter(id) {
|
||||||
return { buffer, fileName, fileType };
|
return { buffer, fileName, fileType };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param {String} str
|
||||||
|
* @returns { { id: string, type: "character" | "lorebook" } | null }
|
||||||
|
*/
|
||||||
function parseChubUrl(str) {
|
function parseChubUrl(str) {
|
||||||
const splitStr = str.split('/');
|
const splitStr = str.split('/');
|
||||||
const length = splitStr.length;
|
const length = splitStr.length;
|
||||||
|
|
Loading…
Reference in New Issue