Fix type error in createLazyFields
| @@ -3236,7 +3236,7 @@ export function baseChatReplace(value, name1Override = null, name2Override = nul | |||
| 3236 | 3236 | ||
| 3237 | /** | 3237 | /** |
| 3238 | * Helper to create an object with lazy, memoized getters from a map of field resolvers. | 3238 | * Helper to create an object with lazy, memoized getters from a map of field resolvers. |
| 3239 | * @param {Record<string, () => string>} resolvers Map of field names to resolver functions | 3239 | * @param {Record<string, () => string|string[]>} resolvers Map of field names to resolver functions |
| 3240 | * @returns {CharacterCardFields} Object with lazy getters | 3240 | * @returns {CharacterCardFields} Object with lazy getters |
| 3241 | */ | 3241 | */ |
| 3242 | export function createLazyFields(resolvers) { | 3242 | export function createLazyFields(resolvers) { |
| @@ -3274,7 +3274,7 @@ export function getCharacterCardFieldsLazy({ chid = undefined } = {}) { | |||
| 3274 | const useGroupCards = selected_group && character; | 3274 | const useGroupCards = selected_group && character; |
| 3275 | const groupCardsLazy = useGroupCards ? getGroupCharacterCardsLazy(selected_group, Number(currentChid)) : null; | 3275 | const groupCardsLazy = useGroupCards ? getGroupCharacterCardsLazy(selected_group, Number(currentChid)) : null; |
| 3276 | 3276 | ||
| 3277 | /** @type {Record<string, () => string>} */ | 3277 | /** @type {Record<string, () => string|string[]>} */ |
| 3278 | const resolvers = { | 3278 | const resolvers = { |
| 3279 | persona: () => baseChatReplace(power_user.persona_description?.trim()), | 3279 | persona: () => baseChatReplace(power_user.persona_description?.trim()), |
| 3280 | system: () => { | 3280 | system: () => { |