summary refs log tree commit diff
path: root/src/util/Config.ts
diff options
context:
space:
mode:
authorDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 13:43:38 -0500
committerDiego Magdaleno <diegomagdaleno@protonmail.com>2021-05-23 13:43:38 -0500
commit28424ed95030e700f9aa8d6f4305da045f260a39 (patch)
tree29c5d85351363f7f189a61e2da52c214e597c0dd /src/util/Config.ts
parentMerge branch 'fosscord-master' (diff)
downloadserver-28424ed95030e700f9aa8d6f4305da045f260a39.tar.xz
Fix: No more type casting required, rather take the gernics
Diffstat (limited to 'src/util/Config.ts')
-rw-r--r--src/util/Config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts

index 6054166f..89f35901 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts
@@ -362,4 +362,4 @@ const validator = ajv.compile(schema); const configPath = getConfigPathForFile("fosscord", "api", ".json"); -export const apiConfig = new Config({path: configPath, schemaValidator: validator, schema: schema}); \ No newline at end of file +export const apiConfig = new Config<DefaultOptions>({path: configPath, schemaValidator: validator, schema: schema}); \ No newline at end of file