kibana/docs/development/plugins/expressions/server/kibana-plugin-plugins-expressions-server.expressionastfunctionbuilder.addargument.md
2020-09-30 09:10:28 +02:00

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;