From 39c38c737114dc7f946b1895b2a4ba27a5546c60 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 6 Jul 2021 13:07:07 +0200 Subject: Migrated frontend to typescript --- packages/client/src/util/util.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 packages/client/src/util/util.ts (limited to 'packages/client/src/util/util.ts') 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(); +} -- cgit v1.2.3-18-g5258