aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/util/util.ts
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-06 13:07:07 +0200
committerHampusM <hampus@hampusmat.com>2021-07-06 13:07:07 +0200
commit39c38c737114dc7f946b1895b2a4ba27a5546c60 (patch)
tree61344a90155845d08c4811da16e6f90504da2625 /packages/client/src/util/util.ts
parent4102adab527ccc4f6d8ac210118dea21177c212d (diff)
Migrated frontend to typescript
Diffstat (limited to 'packages/client/src/util/util.ts')
-rw-r--r--packages/client/src/util/util.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/client/src/util/util.ts b/packages/client/src/util/util.ts
new file mode 100644
index 0000000..5f72c27
--- /dev/null
+++ b/packages/client/src/util/util.ts
@@ -0,0 +1,7 @@
+type Params = {
+ [key: string]: string | string[]
+}
+
+export function getParam(params: Params, param: string): string {
+ return params[param].toString();
+}