hook
Variable: hook
const hook: {
create: (config: HookConfig) => Promise<HookResponse>;
delete: (hookId: string) => Promise<HookDeleteResponse>;
disable: (hookId: string) => Promise<HookResponse>;
enable: (hookId: string) => Promise<HookResponse>;
get: (hookId: string) => Promise<HookResponse>;
initialize: (projectPath: string) => Promise<HookInitializeResponse>;
list: () => Promise<HookListResponse>;
update: (hookId: string, config: Partial<HookConfig>) => Promise<HookResponse>;
};
Defined in: packages/codeboltjs/src/modules/hook.ts:16
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
create() | (config: HookConfig) => Promise<HookResponse> | Create a new hook | packages/codeboltjs/src/modules/hook.ts:37 |
delete() | (hookId: string) => Promise<HookDeleteResponse> | Delete a hook | packages/codeboltjs/src/modules/hook.ts:70 |
disable() | (hookId: string) => Promise<HookResponse> | Disable a hook | packages/codeboltjs/src/modules/hook.ts:133 |
enable() | (hookId: string) => Promise<HookResponse> | Enable a hook | packages/codeboltjs/src/modules/hook.ts:117 |
get() | (hookId: string) => Promise<HookResponse> | Get a hook by ID | packages/codeboltjs/src/modules/hook.ts:101 |
initialize() | (projectPath: string) => Promise<HookInitializeResponse> | Initialize the hook manager for a project | packages/codeboltjs/src/modules/hook.ts:21 |
list() | () => Promise<HookListResponse> | List all hooks | packages/codeboltjs/src/modules/hook.ts:85 |
update() | (hookId: string, config: Partial<HookConfig>) => Promise<HookResponse> | Update an existing hook | packages/codeboltjs/src/modules/hook.ts:54 |