This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-17
Channels
- # announcements (1)
- # babashka (6)
- # beginners (5)
- # boot (18)
- # calva (4)
- # clj-kondo (39)
- # cljdoc (1)
- # cljs-dev (1)
- # clojure (24)
- # clojure-italy (5)
- # clojure-spec (5)
- # clojurescript (20)
- # cursive (10)
- # data-science (1)
- # datomic (1)
- # emacs (1)
- # fulcro (1)
- # kaocha (5)
- # rewrite-clj (18)
- # shadow-cljs (11)
- # spacemacs (35)
- # sql (11)
- # vim (13)
in spec2, should {:closed true}
be available for schema spec?
(s/def ::user (s/schema [::name ::age]))
;;; contains? not supported on type: java.lang.Boolean
(s/valid? ::user {::name "cat" ::age 10} {:closed true})
(s/def ::complete-user (s/select ::user [*]))
;;; ok
(s/valid? ::complete-user {::name "dog" ::age 15} {:closed true})
It’s a set of schema names, not a boolean
Hi! Is there a way to spec a return type of Promise<something> ? I would need this in quite a few places using cljs
Not usefully, no
Thanks!