API Reference
    Preparing search index...

    Options for a function signature.

    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.

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

    Properties

    argumentsSpecs: string[][]
    variadic?: boolean