FunctionSignatureOptions: { argumentsSpecs: string[][]; variadic?: boolean }

Options for a function signature.

Type declaration

  • argumentsSpecs: string[][]
  • Optionalvariadic?: boolean
import { PowertoolsFunctions } from '@aws-lambda-powertools/jmespath/functions';

class MyFunctions extends Functions {
⁣@Functions.signature({
argumentsSpecs: [['number'], ['number']],
variadic: true,
})
public funcMyMethod(args: Array<number>): unknown {
// ...
}
}

The expected arguments for the function.

Whether the function is variadic.