For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias DiffCommand<T>

DiffCommand: T extends DiffOperations
    ? { args: DiffOperationsMap[T]; command: T }
    : never

A single diff command, where the arguments are derived from the command name.

This is distributed over T so that DiffCommand<DiffOperations> is a discriminated union of all the commands, which lets a switch on command narrow args to a single tuple.

Type Parameters

Was this helpful?