Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defalias html-label (t/HVec [Keyword (t/HMap :mandatory {:for String}) String]))
- (defalias html-form (t/HVec [Keyword (t/HMap :mandatory {:id String}) t/Any *]))
- (defalias html-form-group (t/HVec [html-label html-form]))
- (t/ann dt->hiccup [(HVec [Keyword (U Keyword (HVec [Keyword Number])) t/Any t/Any *]) ->
- html-form-group])
- (defmulti dt->hiccup (t/fn [col :- pt/et-column]
- (if (vector? (second col))
- (first (second col))
- (second col))))
- Type Error (leiningen/td_to_hiccup.clj:25:34) Polymorphic function first could not be applied to arguments:
- Polymorphic Variables:
- x
- Domains:
- (t/HSequential [x t/Any *])
- (t/Option (t/EmptySeqable x))
- (t/NonEmptySeqable x)
- (t/Option (clojure.lang.Seqable x))
- Arguments:
- (t/U Keyword (t/HVec [clojure.lang.Keyword java.lang.Number]))
- Ranges:
- x :object {:path [(Nth 0)], :id 0}
- nil
- x
- (t/Option x)
- in: (first (second col))
- in: (first (second col))
- ExceptionInfo Type Checker: Found 1 error clojure.core/ex-info (core.clj:4403)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement