-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #685 from dvingo/dvingo/fix-cljs-instrument-check
cljs instrumentation: ensure malli.generator is available at runtime
- Loading branch information
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
(ns malli.instrument.cljs | ||
(:require-macros [malli.instrument.cljs])) | ||
(:require-macros [malli.instrument.cljs]) | ||
(:require [malli.generator :as mg])) | ||
|
||
(defonce instrumented-vars (atom {})) | ||
|
||
(defn -filter-var [f] (fn [_ s _] (f s))) | ||
(defn -filter-ns [& ns] (fn [n _ _] ((set ns) n))) | ||
|
||
(defn perform-check [schema f] | ||
(mg/check schema f)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters