From 29eccb27edb97ea12345962a3a321f186eb58328 Mon Sep 17 00:00:00 2001 From: Luciole <31817566+Luciole0x@users.noreply.github.com> Date: Sat, 26 Aug 2023 00:08:56 +0200 Subject: [PATCH] Allow pluggins to get custom config field --- packages/lib/src/config/definitions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/lib/src/config/definitions.ts b/packages/lib/src/config/definitions.ts index b39d2ef4..cdfa7d0f 100644 --- a/packages/lib/src/config/definitions.ts +++ b/packages/lib/src/config/definitions.ts @@ -157,6 +157,7 @@ export class ControllerConfig extends classes.Config { get(name: "controller.proxy_stream_timeout"): number; get(name: "controller.default_mod_pack_id"): number | null; get(name: "controller.default_role_id"): number | null; + get(name: string): unknown; get(name: string) { return super.get(name); } @@ -262,6 +263,7 @@ export class HostConfig extends classes.Config { get(name: "host.tls_ca"): string | null; get(name: "host.public_address"): string; get(name: "host.max_reconnect_delay"): number; + get(name: string): unknown; get(name: string) { return super.get(name); } @@ -450,6 +452,7 @@ export class InstanceConfig extends classes.Config { get(name: "factorio.sync_whitelist"): boolean; get(name: "factorio.sync_banlist"): boolean; get(name: "factorio.max_concurrent_commands"): number; + get(name: string): unknown; get(name: string) { return super.get(name); }