Amplication AST Libraries Documentation
    Preparing search index...
    interface Args {
        name: string;
        access: Access;
        isAsync: boolean;
        parameters: Parameter[];
        return_?: Type;
        body?: CodeBlock;
        summary?: string;
        type?: MethodType;
        classReference?: ClassReference;
        extensionParameter?: Parameter;
        annotations?: Annotation[];
        splitAnnotations?: boolean;
    }
    Index

    Properties

    name: string

    The name of the method

    access: Access

    The access level of the method

    isAsync: boolean

    Whether the method is asynchronous

    parameters: Parameter[]

    The parameters of the method

    return_?: Type

    The return type of the method

    body?: CodeBlock

    The body of the method

    summary?: string

    XML documentation summary for the method

    type?: MethodType

    The type of the method (instance or static)

    classReference?: ClassReference

    The class this method belongs to

    extensionParameter?: Parameter

    The extension parameter for extension methods

    annotations?: Annotation[]

    Any annotations to add to the method

    splitAnnotations?: boolean

    Whether to split annotations onto separate lines