这是开发预览网站。请访问正式文档 lynxjs.org

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