aboutsummaryrefslogtreecommitdiff
path: root/webAO/utils/aoml.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/utils/aoml.ts')
-rw-r--r--webAO/utils/aoml.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/utils/aoml.ts b/webAO/utils/aoml.ts
index da66d0c..fbdee21 100644
--- a/webAO/utils/aoml.ts
+++ b/webAO/utils/aoml.ts
@@ -1,6 +1,7 @@
import request from "../services/request"
interface Aoml {
+ [key: string]: string | number,
name: string;
start: string;
end: string;
@@ -32,7 +33,7 @@ const aomlParser = (text: string) => {
return parsed
}
-const mlConfig = (AO_HOST) => {
+const mlConfig = (AO_HOST: string) => {
const defaultUrl = `${AO_HOST}themes/default/chat_config.ini`
let aomlParsed: Promise<{[key: string]: Aoml}> = request(defaultUrl).then((data) => aomlParser(data));