Back

add-local-javadoc (clj)

(source)

function

(add-local-javadoc path)
Adds to the list of local Javadoc paths.

Examples

clojure/core.typed

(deftest javadoc-test
  (is-tc-e #(javadoc 1) [-> Any]
           :requires [[clojure.java.javadoc :refer [javadoc]]]))

(deftest add-local-javadoc-test
  (is-tc-e #(add-local-javadoc 1) [-> (List Any)]
           :requires [[clojure.java.javadoc :refer [add-local-javadoc]]])
  (is-tc-err #(add-local-javadoc 1) [-> String]
             :requires [[clojure.java.javadoc :refer [add-local-javadoc]]]))
typedclojure/typedclojure
(deftest javadoc-test
  (is-tc-e #(javadoc 1) [-> t/Any]
           :requires [[clojure.java.javadoc :refer [javadoc]]]))

(deftest add-local-javadoc-test
  (is-tc-e #(add-local-javadoc 1) [-> (t/List t/Any)]
           :requires [[clojure.java.javadoc :refer [add-local-javadoc]]])
  (is-tc-err #(add-local-javadoc 1) [-> String]
             :requires [[clojure.java.javadoc :refer [add-local-javadoc]]]))