fix: correct ProcessEnv type import in txnBot
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 <noreply@anthropic.com>
This commit is contained in:
parent
c8162b2f3f
commit
a8786f6460
2 changed files with 2 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ export default [
|
||||||
process: 'readonly',
|
process: 'readonly',
|
||||||
fetch: 'readonly',
|
fetch: 'readonly',
|
||||||
setInterval: 'readonly',
|
setInterval: 'readonly',
|
||||||
|
NodeJS: 'readonly',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
import dotenv from 'dotenv';
|
import dotenv from 'dotenv';
|
||||||
import type { ProcessEnv } from 'node:process';
|
|
||||||
import { EnvConfig } from '../types.js';
|
import { EnvConfig } from '../types.js';
|
||||||
|
|
||||||
export class BotConfigService {
|
export class BotConfigService {
|
||||||
private readonly config: EnvConfig;
|
private readonly config: EnvConfig;
|
||||||
|
|
||||||
constructor(private readonly env: ProcessEnv = process.env) {
|
constructor(private readonly env: NodeJS.ProcessEnv = process.env) {
|
||||||
this.loadEnvFile();
|
this.loadEnvFile();
|
||||||
this.config = this.resolveConfig();
|
this.config = this.resolveConfig();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue