diff options
| author | Tom Harley | 2018-02-08 18:33:40 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-02-08 18:33:40 +0000 |
| commit | 05f1604a853bb3e2a066ceab1305abbc11d1d99d (patch) | |
| tree | 0097be217b4e56dd2d1fae7159ee1f5a59f9576c /src/matcher/options.ts | |
| parent | Merge branch 'trh/db-orm' into trh/payload-checker (diff) | |
| download | medicine-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.ts | 3 |
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); |
