aboutsummaryrefslogtreecommitdiff
path: root/src/matcher/options.ts
diff options
context:
space:
mode:
authorTom Harley2018-02-08 18:33:40 +0000
committerTom Harley2018-02-08 18:33:40 +0000
commit05f1604a853bb3e2a066ceab1305abbc11d1d99d (patch)
tree0097be217b4e56dd2d1fae7159ee1f5a59f9576c /src/matcher/options.ts
parentMerge branch 'trh/db-orm' into trh/payload-checker (diff)
downloadmedicine-05f1604a853bb3e2a066ceab1305abbc11d1d99d.tar.gz
medicine-05f1604a853bb3e2a066ceab1305abbc11d1d99d.zip

Revert “Revert”Merge branch ‘testing’""

This reverts commit 0a9ebb01c27ed0a648922d243e877194977ce4d1.

Diffstat (limited to 'src/matcher/options.ts')
-rw-r--r--src/matcher/options.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/matcher/options.ts b/src/matcher/options.ts
index 2e65105..7412675 100644
--- a/src/matcher/options.ts
+++ b/src/matcher/options.ts
@@ -1,5 +1,8 @@
import { default as types } from './types';
+type matchType<T = any>
+ = (boolean | ((T) => boolean));
+
export function match(template: Object, value?: Object) {
if (value === undefined) {
return match.bind(null, template);