Skip to main content

Function: getRepositoryHookObjects()

function getRepositoryHookObjects(
root: JsonValue | undefined
): readonly Readonly<{
eventName: string;
hook: JsonObject;
index: number;
}>[];

Defined in: _internal/repository-hooks-json.ts:164

Collect object-shaped hook entries from hook arrays.

Parameters​

ParameterType
rootJsonValue

Returns​

readonly Readonly<{ eventName: string; hook: JsonObject; index: number; }>[]