diff options
| author | Tom Harley | 2018-04-21 03:07:02 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-21 03:07:02 +0100 |
| commit | 4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec (patch) | |
| tree | 59c487fc0019040448a9713b3c4c146a560ec13d /src/matcher | |
| parent | Merge branch 'trh/gets' of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/projec... (diff) | |
| parent | Fix many small file-handling problems (diff) | |
| download | medicine-4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec.tar.gz medicine-4237e378c70c0d6adb3dab4c9ba5cf5385f4a6ec.zip | |
Merge branch ‘trh/files’ into trh/gets
Diffstat (limited to 'src/matcher')
| -rw-r--r-- | src/matcher/index.ts | 4 | ||||
| -rw-r--r-- | src/matcher/options.ts | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/matcher/index.ts b/src/matcher/index.ts index 0806907..e7c2f88 100644 --- a/src/matcher/index.ts +++ b/src/matcher/index.ts @@ -5,7 +5,9 @@ export { exact, optional, alternative, - array + array, + match, + metadata } from './options'; export { diff --git a/src/matcher/options.ts b/src/matcher/options.ts index 62e4985..0bad627 100644 --- a/src/matcher/options.ts +++ b/src/matcher/options.ts @@ -89,6 +89,12 @@ export const array = (template: TemplateValue, values?: Value[]) => { }; // tslint:disable-next-line:typedef +export const metadata = exact({ + version: types.integer, + namespaces: {} +}); + +// tslint:disable-next-line:typedef const options = { match, exact, |
