add typesafty

This commit is contained in:
jem 2020-02-14 13:25:28 +01:00
parent 59206d4545
commit ea49ced936

View file

@ -27,9 +27,9 @@
(def JavaPath this/JavaPath) ; java.nio.Path
(def Resource this/Resource)
(s/defn create-fs-resource :- this/Resource
([virtual-path :- this/VirtualPath
java-path :- this/JavaPath]
(defn create-fs-resource
([virtual-path
java-path]
{:virtual-path virtual-path
:java-uri (.toUri java-path)
:java-path java-path