@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface CommandContractOptions<TArgs>

    Options accepted by defineCommandContract.

    interface CommandContractOptions<TArgs extends readonly unknown[]> {
        args?: ArgumentsValidator<TArgs>;
    }

    Type Parameters

    • TArgs extends readonly unknown[]
    Index

    Validates the argument tuple before the handler runs.

    Worth adding for commands reachable from menus, keybindings or other extensions, where TypeScript guarantees nothing.