speced.def
speced.def copied to clipboard
ClojureScript compat - pt. 2 (minor)
aka the pending items from https://github.com/nedap/utils.spec/pull/54 :
- [x] cover
consistent-tagging?
and other similar fns - [x] Create a specific test for
37e9456 (instance-spec: also check protocols, for cljs)
- [x]
extract-specs-from-metadata
can return:type-annotation js/Number
(as opposed to'number
), as reflected inunit.nedap.utils.spec.impl.parsing
- [ ] Ensure unit.nedap.utils.speced.defn.pre-post is in sync
- [ ] Create assert for
;; in CLJS, arglists don't ever get a :tag.
- [ ] Upgrade
:pre
s to usecheck!
- [ ] Maybe: if there's a primitive hint, turn
:pre
s into:post
s- Rationale:
Note that boolean return values will be turned into Booleans, chars will become Characters, and numeric primitives will become Numbers unless they are immediately consumed by a method taking a primitive.
https://clojure.org/reference/java_interop
- Rationale:
- [ ] README for cljs:
- mention possible need for requiring Expound
Satisfied the most important points for now.