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;
}>[]