aboutsummaryrefslogtreecommitdiff
path: root/src/matcher/options.ts
diff options
context:
space:
mode:
authorTom Harley2018-02-09 05:59:48 +0000
committerTom Harley2018-02-09 05:59:48 +0000
commit7913e19e2f83296dc96a67e6437f6006b1d894ac (patch)
tree728e9ac392f6d6fbb179586659329355a36826a5 /src/matcher/options.ts
parentMerge branch 'auth' into trh/middleware (diff)
downloadmedicine-7913e19e2f83296dc96a67e6437f6006b1d894ac.tar.gz
medicine-7913e19e2f83296dc96a67e6437f6006b1d894ac.zip

various work I forgot to commit

Diffstat (limited to 'src/matcher/options.ts')
-rw-r--r--src/matcher/options.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/matcher/options.ts b/src/matcher/options.ts
index 7412675..c1d1aeb 100644
--- a/src/matcher/options.ts
+++ b/src/matcher/options.ts
@@ -75,3 +75,12 @@ export function array(template: Object, values?: Array<Object>) {
let m = match(template) as ((Object) => boolean);
return values.every(m);
}
+
+const options = {
+ match = match,
+ exact = exact,
+ optional = optional,
+ alternative = alternative,
+ array = array
+};
+export default options;