type-hint all arities of mongo-id
This commit is contained in:
parent
4ffb3f8a9a
commit
1de8cabb5b
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
||||||
(defn mongo-id ;; https://mongodb.github.io/mongo-java-driver/4.8/apidocs/bson/org/bson/types/ObjectId.html
|
(defn mongo-id ;; https://mongodb.github.io/mongo-java-driver/4.8/apidocs/bson/org/bson/types/ObjectId.html
|
||||||
(^ObjectId [] (ObjectId.))
|
(^ObjectId [] (ObjectId.))
|
||||||
(^ObjectId [o] (oid-from o))
|
(^ObjectId [o] (oid-from o))
|
||||||
([o1 o2]
|
(^ObjectId [o1 o2]
|
||||||
(if (and (int? o1)
|
(if (and (int? o1)
|
||||||
(int? o2))
|
(int? o2))
|
||||||
(ObjectId. (int o1) (int o2))
|
(ObjectId. (int o1) (int o2))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue