diff options
| author | stonedDiscord <Tukz@gmx.de> | 2023-09-20 12:57:45 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2023-09-20 12:57:45 +0200 |
| commit | 59028dd4046ad0715d80be8d1ed0031f20f05b7a (patch) | |
| tree | c66c470ad4fb959b8959f1895e410762c557437b /webAO/utils/queryParser.ts | |
| parent | ef28c355ef69fee7511956751bbdb5dcd1a931b1 (diff) | |
mostly whitespaces, please don't break
Diffstat (limited to 'webAO/utils/queryParser.ts')
| -rw-r--r-- | webAO/utils/queryParser.ts | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/webAO/utils/queryParser.ts b/webAO/utils/queryParser.ts index 3110c14..20863ca 100644 --- a/webAO/utils/queryParser.ts +++ b/webAO/utils/queryParser.ts @@ -1,22 +1,25 @@ +/* eslint @typescript-eslint/no-explicit-any: "warn" */ + interface QueryParams { - ip: string; - serverIP: string; - mode: string; - asset: string; - theme: string; + ip: string; + serverIP: string; + mode: string; + asset: string; + theme: string; } + interface StringMap { - [key: string]: any; + [key: string]: any; } const queryParser = (): QueryParams => { - const queryDict: StringMap = {}; - location.search - .substr(1) - .split("&") - .forEach((item) => { - queryDict[item.split("=")[0]] = item.split("=")[1]; - }); - return queryDict as QueryParams; + const queryDict: StringMap = {}; + location.search + .substr(1) + .split("&") + .forEach((item) => { + queryDict[item.split("=")[0]] = item.split("=")[1]; + }); + return queryDict as QueryParams; }; export default queryParser; |
