IFClite TypeScript API
    Preparing search index...

    Interface MethodSchema

    interface MethodSchema {
        args: ArgType[];
        call: (
            sdk: BimContext,
            args: unknown[],
            context: BridgeCallContext,
        ) => unknown;
        doc: string;
        llmSemantics?: MethodSemanticContract;
        name: string;
        paramNames?: string[];
        returns: ReturnType;
        tsParamTypes?: (string | undefined)[];
        tsReturn?: string;
    }
    Index
    args: ArgType[]

    Argument types, in order

    call: (sdk: BimContext, args: unknown[], context: BridgeCallContext) => unknown

    Execute the SDK call and return a native JS value

    doc: string

    Human-readable description for editor completions

    llmSemantics?: MethodSemanticContract

    Shared semantic contract for prompts, validation, and repair hints

    name: string

    Method name exposed in QuickJS (e.g., 'colorize')

    paramNames?: string[]

    Parameter names for generated TypeScript declarations (optional)

    returns: ReturnType

    How to marshal the return value

    tsParamTypes?: (string | undefined)[]

    Override TypeScript parameter types (indexed by position, undefined = use default)

    tsReturn?: string

    TypeScript return type for generated declarations (default: inferred from returns)