fix(core): fix lint/type issues and small refactors

This commit is contained in:
2026-01-29 17:46:23 +00:00
parent 165c7d29bb
commit cb34ae5041
15 changed files with 39 additions and 20 deletions

View File

@@ -3,7 +3,7 @@ import * as fs from 'node:fs';
import process from 'node:process';
import { exec } from 'node:child_process';
import { promisify } from 'node:util';
import { Action, type IActionConfig, type IActionContext } from './base-action.ts';
import { Action, type IActionContext } from './base-action.ts';
import { logger } from '../logger.ts';
const execAsync = promisify(exec);

View File

@@ -1,7 +1,7 @@
import * as http from 'node:http';
import * as https from 'node:https';
import { URL } from 'node:url';
import { Action, type IActionConfig, type IActionContext } from './base-action.ts';
import { Action, type IActionContext } from './base-action.ts';
import { logger } from '../logger.ts';
import { WEBHOOK } from '../constants.ts';
@@ -81,7 +81,7 @@ export class WebhookAction extends Action {
* @param method HTTP method (GET or POST)
* @param timeout Request timeout in milliseconds
*/
private async callWebhook(
private callWebhook(
context: IActionContext,
method: 'GET' | 'POST',
timeout: number,