Documentation
    Preparing search index...

    Complete metadata for a single function.

    Contains all information needed to describe a function in JSON Schema format, including parameters, return type, and documentation extracted from JSDoc comments.

    interface IFunction<
        Schema extends
            OpenApi.IJsonSchema
            | OpenApiV3.IJsonSchema = OpenApi.IJsonSchema,
    > {
        async: boolean;
        deprecated?: boolean;
        description?: string;
        name: string;
        output: IOutput<Schema>
        | undefined;
        parameters: IJsonSchemaApplication.IParameter<Schema>[];
        summary?: string;
        tags?: string[];
    }

    Type Parameters

    Index

    Properties

    async: boolean

    Whether the function is asynchronous.

    true if the function returns a Promise, false for synchronous functions. Useful for runtime execution handling.

    deprecated?: boolean

    Whether the function is deprecated.

    Set from the @deprecated JSDoc tag. Indicates the function should no longer be used and may be removed in future versions.

    description?: string

    Full function description.

    Complete documentation extracted from JSDoc comment body. May include markdown formatting, examples, and detailed explanations.

    name: string

    Function name identifier.

    The name used to call this function. Derived from the method name in the source class/interface.

    output: IOutput<Schema> | undefined

    Return type information.

    Contains the return type schema and documentation. undefined when the function returns void or has no return type annotation.

    Array of function parameters.

    Ordered list of parameters with their names, types, and documentation. Parameters preserve their declaration order.

    summary?: string

    Brief summary of the function.

    Short one-line description extracted from the first line of JSDoc comment. Intended for quick reference in documentation.

    tags?: string[]

    Category tags for organization.

    Extracted from @tag JSDoc annotations. Useful for grouping related functions in documentation or filtering.