We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(mp/provide { #uuid "db0d64d2-f9c2-11e9-a9c8-4e1c82be3afd" {:key 'value} #uuid "db0d62d2-f9c2-11e9-a9c8-4e1c82be3afd" {:key 'value} }) ;; => [:vector [:or uuid? [:map [:key symbol?]]]] (mp/provide {:test { #uuid "db0d64d2-f9c2-11e9-a9c8-4e1c82be3afd" {:key 'value} #uuid "db0d62d2-f9c2-11e9-a9c8-4e1c82be3afd" {:key 'value} }}) ;; => [:vector ;; [:or ;; keyword? ;; [:map ;; [#uuid "db0d64d2-f9c2-11e9-a9c8-4e1c82be3afd" [:map [:key symbol?]]] ;; [#uuid "db0d62d2-f9c2-11e9-a9c8-4e1c82be3afd" [:map [:key symbol?]]]]]] (mp/provide { #inst "2000-01-01" {:key 'value} #inst "2001-01-01" {:key 'value} }) ;; => [:vector [:or inst? [:map [:key symbol?]]]] (mp/provide {:test { #inst "2000-01-01" {:key 'value} #inst "2001-01-01" {:key 'value} }}) ;; => [:vector ;; [:or ;; keyword? ;; [:map ;; [#inst "2000-01-01T00:00:00.000-00:00" [:map [:key symbol?]]] ;; [#inst "2001-01-01T00:00:00.000-00:00" [:map [:key symbol?]]]]]]
sometimes keys on maps are inferred correctly, and sometimes the inference in a pass-through
The text was updated successfully, but these errors were encountered:
The mp/provide expects a sequence of values.
mp/provide
(mp/provide [{#uuid "db0d64d2-f9c2-11e9-a9c8-4e1c82be3afd" {:key 'value} #uuid "db0d62d2-f9c2-11e9-a9c8-4e1c82be3afd" {:key 'value}}]) ; [:map ; [#uuid"db0d64d2-f9c2-11e9-a9c8-4e1c82be3afd" [:map [:key symbol?]]] ; [#uuid"db0d62d2-f9c2-11e9-a9c8-4e1c82be3afd" [:map [:key symbol?]]]]
this is expected, as there is no support yet for inferring :map-of, see #74 .
:map-of
Sorry, something went wrong.
No branches or pull requests
sometimes keys on maps are inferred correctly, and sometimes the inference in a pass-through
The text was updated successfully, but these errors were encountered: