Skip to main content

eslint-plugin-copilot Documentation / _internal/repository-hooks-json / getRepositoryHookObjects

Function: getRepositoryHookObjects()

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

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

Collect object-shaped hook entries from hook arrays.

Parameters​

| Parameter | Type | | --------- | ------------------------------------------- | ----------- | | root | JsonValue | undefined |

Returns​

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