From a8786f6460f92ccd45fd38b7e4a70e1f88930cf9 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 8 Nov 2025 10:39:27 +0000 Subject: [PATCH] fix: correct ProcessEnv type import in txnBot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes ProcessEnv import from non-existent 'node:process' module to use built-in NodeJS.ProcessEnv type. Fixes TypeScript compilation error: Module '"node:process"' has no exported member 'ProcessEnv' Also adds NodeJS to ESLint globals to resolve no-undef warning. All services now healthy and operational. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- services/txnBot/eslint.config.js | 1 + services/txnBot/src/services/BotConfigService.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/txnBot/eslint.config.js b/services/txnBot/eslint.config.js index f05c097..455f8f4 100644 --- a/services/txnBot/eslint.config.js +++ b/services/txnBot/eslint.config.js @@ -18,6 +18,7 @@ export default [ process: 'readonly', fetch: 'readonly', setInterval: 'readonly', + NodeJS: 'readonly', }, }, plugins: { diff --git a/services/txnBot/src/services/BotConfigService.ts b/services/txnBot/src/services/BotConfigService.ts index 06d4be6..97e49dc 100644 --- a/services/txnBot/src/services/BotConfigService.ts +++ b/services/txnBot/src/services/BotConfigService.ts @@ -1,13 +1,12 @@ import path from 'path'; import { fileURLToPath } from 'url'; import dotenv from 'dotenv'; -import type { ProcessEnv } from 'node:process'; import { EnvConfig } from '../types.js'; export class BotConfigService { private readonly config: EnvConfig; - constructor(private readonly env: ProcessEnv = process.env) { + constructor(private readonly env: NodeJS.ProcessEnv = process.env) { this.loadEnvFile(); this.config = this.resolveConfig(); }