@twip/web
    Preparing search index...

    Type Alias OpArgs<K>

    OpArgs: Parameters<Commands[K]> extends []
        ? {}
        : [Exclude<Parameters<Commands[K]>[0], undefined>] extends [
            string
            | number
            | boolean
            | null,
        ]
            ? { value: Exclude<Parameters<Commands[K]>[0], undefined> }
            : [Exclude<Parameters<Commands[K]>[0], undefined>] extends [
                RichText
                | Uint8Array
                | FillValue
                | Watermark
                | readonly unknown[],
            ]
                ? { value: Exclude<Parameters<Commands[K]>[0], undefined> }
                : [Exclude<Parameters<Commands[K]>[0], undefined>] extends [object]
                    ? Exclude<Parameters<Commands[K]>[0], undefined>
                    : { value: Exclude<Parameters<Commands[K]>[0], undefined> }

    An op's fields besides type. A single argument (a primitive, RichText, bytes, an array, a FillValue, whose type would clash with the op's, or a union with a primitive) goes in value; an options object, and a tagged value such as LineSpacing or TableWidth, is spread into the op.

    Type Parameters