diff --git a/frontend/src/app/main/ui/components/tab_container.cljs b/frontend/src/app/main/ui/components/tab_container.cljs index 1e3b99079c..0d39e93d81 100644 --- a/frontend/src/app/main/ui/components/tab_container.cljs +++ b/frontend/src/app/main/ui/components/tab_container.cljs @@ -16,6 +16,8 @@ [cuerdas.core :as str] [rumext.v2 :as mf])) +(set! *warn-on-infer* false) + (mf/defc tab-element {::mf/wrap-props false} [{:keys [children]}] diff --git a/frontend/src/app/main/ui/workspace/tokens/tinycolor.cljs b/frontend/src/app/main/ui/workspace/tokens/tinycolor.cljs index 91fac6bdf1..9a8d74f101 100644 --- a/frontend/src/app/main/ui/workspace/tokens/tinycolor.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/tinycolor.cljs @@ -6,18 +6,18 @@ (:require ["tinycolor2" :as tinycolor])) -(defn tinycolor? [x] +(defn tinycolor? [^js x] (and (instance? tinycolor x) (.isValid x))) (defn valid-color [color-str] (let [tc (tinycolor color-str)] (when (.isValid tc) tc))) -(defn ->hex [tc] +(defn ->hex [^js tc] (assert (tinycolor? tc)) (.toHex tc)) -(defn color-format [tc] +(defn color-format [^js tc] (assert (tinycolor? tc)) (.getFormat tc))