Skip to content

Commit

Permalink
add function schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Nov 23, 2024
1 parent 559bbf5 commit f001592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/utils/length.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
n
(if (valid-unit? unit) (->px n unit) 0))))

(m/=> transform [:-> [:or string? number? nil?] ifn? [:* any?] string?])
(defn transform
"Converts a value to pixels, applies a function and converts the result
back to the original unit."
Expand Down

0 comments on commit f001592

Please sign in to comment.