Fix type error in createLazyFields

This commit is contained in:
Cohee
2026-03-03 15:48:45 +00:00
parent 552cb948ed
commit b9efb12d4d
+2 -2
View File
@@ -3236,7 +3236,7 @@ export function baseChatReplace(value, name1Override = null, name2Override = nul
/**
* Helper to create an object with lazy, memoized getters from a map of field resolvers.
* @param {Record<string, () => string>} resolvers Map of field names to resolver functions
* @param {Record<string, () => string|string[]>} resolvers Map of field names to resolver functions
* @returns {CharacterCardFields} Object with lazy getters
*/
export function createLazyFields(resolvers) {
@@ -3274,7 +3274,7 @@ export function getCharacterCardFieldsLazy({ chid = undefined } = {}) {
const useGroupCards = selected_group && character;
const groupCardsLazy = useGroupCards ? getGroupCharacterCardsLazy(selected_group, Number(currentChid)) : null;
/** @type {Record<string, () => string>} */
/** @type {Record<string, () => string|string[]>} */
const resolvers = {
persona: () => baseChatReplace(power_user.persona_description?.trim()),
system: () => {