add query params parser util (#496)

This commit is contained in:
Alex Johansson authored and GitHub committed 2021-08-19 12:32:51 +00:00
1 parent f63aa5d550
commit a8ef195546
2 files changed
+11 -3

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
export function asStringOrNull(str: unknown) {
return typeof str === "string" ? str : null;
}