Skip to main content
validateCallingFunctionExists(callingFunctionRef, lookupMaps): void
Defined in: src/modules/validation.ts:46 Validates that a calling function exists by name in the lookup maps. This function checks if the referenced calling function name exists in the defined calling functions.

Parameters

ParameterTypeDescription
callingFunctionRefstringThe calling function name to validate
lookupMaps{ callingFunctionByName: Record<string, CallingFunctionJSON>; callingFunctionByNameLower: Record<string, CallingFunctionJSON>; callingFunctionBySignature: Record<string, CallingFunctionJSON>; }The pre-built lookup maps for efficient resolution
lookupMaps.callingFunctionByNameRecord<string, CallingFunctionJSON>-
lookupMaps.callingFunctionByNameLowerRecord<string, CallingFunctionJSON>-
lookupMaps.callingFunctionBySignatureRecord<string, CallingFunctionJSON>-

Returns

void

Throws

Error with descriptive message if calling function is not found