fix some linting
| @@ -1047,7 +1047,7 @@ export function getImageSizeFromDataURL(dataUrl) { | |||
| 1047 | 1047 | ||
| 1048 | /** | 1048 | /** |
| 1049 | * Gets the filename of the character avatar without extension | 1049 | * Gets the filename of the character avatar without extension |
| 1050 | * @param {number?} [chid=null] - Character ID. If not provided, uses the current character ID | 1050 | * @param {string|number?} [chid=null] - Character ID. If not provided, uses the current character ID |
| 1051 | * @param {object} [options={}] - Options arguments | 1051 | * @param {object} [options={}] - Options arguments |
| 1052 | * @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name | 1052 | * @param {string?} [options.manualAvatarKey=null] - Manually take the following avatar key, instead of using the chid to determine the name |
| 1053 | * @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid | 1053 | * @returns {string?} The filename of the character avatar without extension, or null if the character ID is invalid |
| @@ -966,7 +966,7 @@ function registerWorldInfoSlashCommands() { | |||
| 966 | /** | 966 | /** |
| 967 | * Gets the name of the character-bound lorebook. | 967 | * Gets the name of the character-bound lorebook. |
| 968 | * @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments | 968 | * @param {import('./slash-commands/SlashCommand.js').NamedArguments} args Named arguments |
| 969 | * @param {import('./slash-commands/SlashCommand.js').UnnamedArguments} name Character name | 969 | * @param {string} name Character name |
| 970 | * @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string | 970 | * @returns {string} The name of the character-bound lorebook, a JSON string of the character's lorebooks, or an empty string |
| 971 | */ | 971 | */ |
| 972 | function getCharBookCallback({ type }, name) { | 972 | function getCharBookCallback({ type }, name) { |
| @@ -3443,7 +3443,7 @@ function createEntryInputAutocomplete(input, callback, { allowMultiple = false } | |||
| 3443 | }); | 3443 | }); |
| 3444 | 3444 | ||
| 3445 | $(input).on('focus click', function () { | 3445 | $(input).on('focus click', function () { |
| 3446 | $(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : $(input).val()); | 3446 | $(input).autocomplete('search', allowMultiple ? String($(input).val()).split(/,\s*/).pop() : String($(input).val())); |
| 3447 | }); | 3447 | }); |
| 3448 | } | 3448 | } |
| 3449 | 3449 | ||
| @@ -5118,7 +5118,7 @@ export function openWorldInfoEditor(worldName) { | |||
| 5118 | 5118 | ||
| 5119 | /** | 5119 | /** |
| 5120 | * Assigns a lorebook to the current chat. | 5120 | * Assigns a lorebook to the current chat. |
| 5121 | * @param {PointerEvent} event Pointer event | 5121 | * @param {JQuery.ClickEvent<Document, undefined, any, any>} event Pointer event |
| 5122 | * @returns {Promise<void>} | 5122 | * @returns {Promise<void>} |
| 5123 | */ | 5123 | */ |
| 5124 | export async function assignLorebookToChat(event) { | 5124 | export async function assignLorebookToChat(event) { |
| @@ -5157,7 +5157,7 @@ export async function assignLorebookToChat(event) { | |||
| 5157 | saveMetadata(); | 5157 | saveMetadata(); |
| 5158 | }); | 5158 | }); |
| 5159 | 5159 | ||
| 5160 | return callGenericPopup(template, POPUP_TYPE.TEXT); | 5160 | await callGenericPopup(template, POPUP_TYPE.TEXT); |
| 5161 | } | 5161 | } |
| 5162 | 5162 | ||
| 5163 | /** | 5163 | /** |