diff options
| author | josh97josh | 2018-04-22 17:36:39 +0100 |
|---|---|---|
| committer | josh97josh | 2018-04-22 17:36:39 +0100 |
| commit | aec20c7e3c9a01dbb073590201b473da5669e8e1 (patch) | |
| tree | 53df187fd473c1d0ca19568f03995bb462d9f633 /src/matcher | |
| parent | Merge branch 'jl247/permissions' into trh/gets (diff) | |
| parent | autocreating logs folder on startup (diff) | |
| download | medicine-aec20c7e3c9a01dbb073590201b473da5669e8e1.tar.gz medicine-aec20c7e3c9a01dbb073590201b473da5669e8e1.zip | |
Merge branch ‘trh/gets’ of ssh://localhost:2222/cs3099group-be-4/project-code 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, |
