Lynx

Home > @lynx-js/genui > executeFunctionCall

executeFunctionCall() function

Resolve arguments, look the function up in the registry, and invoke it. When no impl is registered, log once and return undefined so callers (checks, dynamic-property bindings) can degrade gracefully.

Signature:

export declare function executeFunctionCall(
  processor: MessageProcessor,
  fn: v0_9.FunctionCall,
  surfaceId: string,
  dataContextPath?: string,
  options?: ResolveFunctionOptions,
): unknown;

Parameters

Parameter

Type

Description

processor

MessageProcessor

fn

v0_9.FunctionCall

surfaceId

string

dataContextPath

string

(Optional)

options

ResolveFunctionOptions

(Optional)

Returns:

unknown

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.