Skip to content

JSONPath Tools / @jsonpath-tools/jsonpath / FunctionContext

Interface: FunctionContext

Context of a function execution.

Methods

reportParameterWarning()

ts
reportParameterWarning(parameterIndex, message): void

Reports a warning related to the function parameter.

Parameters

parameterIndex

number

Index of the parameter in the function parameters list.

message

string

Warning message.

Returns

void


reportWarning()

ts
reportWarning(message): void

Reports a warning related to the function itself.

Parameters

message

string

Warning message.

Returns

void