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:
commit
07a522e3fb
2 changed files with 2 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ export default [
|
|||
process: 'readonly',
|
||||
fetch: 'readonly',
|
||||
setInterval: 'readonly',
|
||||
NodeJS: 'readonly',
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue