Amplication AST Libraries Documentation
    Preparing search index...

    Configuration arguments for creating a Python function.

    interface FunctionDefArgs {
        name: string;
        parameters?: Parameter[];
        decorators?: Decorator[];
        docstring?: string;
        returnType?: ClassReference;
        isStatic?: boolean;
        isClassMethod?: boolean;
        isAsync?: boolean;
    }
    Index

    Properties

    name: string

    The name of the function

    parameters?: Parameter[]

    The parameters of the function

    decorators?: Decorator[]

    Decorators to apply to the function

    docstring?: string

    Documentation string for the function

    returnType?: ClassReference

    Return type annotation

    isStatic?: boolean

    Whether this is a static method

    isClassMethod?: boolean

    Whether this is a class method

    isAsync?: boolean

    Whether this is an async function