Merge pull request 'fix: correct ProcessEnv type import in txnBot' (#91) from fix/txnbot-processenv-type into master

Reviewed-on: https://codeberg.org/johba/harb/pulls/91
This commit is contained in:
johba 2025-11-08 11:58:49 +01:00
commit 07a522e3fb
2 changed files with 2 additions and 2 deletions

View file

@ -18,6 +18,7 @@ export default [
process: 'readonly',
fetch: 'readonly',
setInterval: 'readonly',
NodeJS: 'readonly',
},
},
plugins: {

View file

@ -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();
}