From 96d9b102b613f58eb2fc636a457aec9436a33902 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 9 Jul 2025 17:01:17 +0200 Subject: [PATCH] :zap: Add type hints on config ns --- frontend/src/app/config.cljs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/config.cljs b/frontend/src/app/config.cljs index 2077fb0dbc..0f1d2c41e6 100644 --- a/frontend/src/app/config.cljs +++ b/frontend/src/app/config.cljs @@ -37,12 +37,12 @@ check-safari-16? (fn [] (and (check-safari?) (str/includes? user-agent "version/16"))) check-safari-17? (fn [] (and (check-safari?) (str/includes? user-agent "version/17")))] (cond - (check-edge?) :edge - (check-chrome?) :chrome - (check-firefox?) :firefox - (check-safari-16?) :safari-16 - (check-safari-17?) :safari-17 - (check-safari?) :safari + ^boolean (check-edge?) :edge + ^boolean (check-chrome?) :chrome + ^boolean (check-firefox?) :firefox + ^boolean (check-safari-16?) :safari-16 + ^boolean (check-safari-17?) :safari-17 + ^boolean (check-safari?) :safari :else :other))) (defn- parse-platform @@ -52,9 +52,9 @@ check-linux? (fn [] (str/includes? user-agent "linux")) check-macos? (fn [] (str/includes? user-agent "mac os"))] (cond - (check-windows?) :windows - (check-linux?) :linux - (check-macos?) :macos + ^boolean (check-windows?) :windows + ^boolean (check-linux?) :linux + ^boolean (check-macos?) :macos :else :other))) (defn- parse-target