mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
889 B
889 B
Home > kibana-plugin-plugins-expressions-server > ExpressionAstFunctionBuilder > addArgument
ExpressionAstFunctionBuilder.addArgument property
Adds an additional argument to the function. For multi-args, this should be called once for each new arg. Note that TS will not enforce whether multi-args are available, so only use this to update an existing arg if you are certain it is a multi-arg.
Signature:
addArgument: <A extends FunctionArgName<FnDef>>(name: A, value: FunctionArgs<FnDef>[A] | ExpressionAstExpressionBuilder) => this;