Skip to content

[F] getPatchOptions

function getPatchOptions(program, operation): PatchOptions | undefined

Gets the PatchOptions for the given operation.

Parameters

ParameterTypeDescription
programProgramThe program in which the operation occurs.
operationOperationThe operation.

Returns

PatchOptions | undefined

The PatchOptions for the operation, or undefined if none. If the operation is not a PATCH operation, this function will always return undefined. If it is a PATCH operation, it may return undefined if no options were provided.