feat: boost academic terms dynamically

This commit is contained in:
Wieland Schöbl
2019-09-24 10:44:40 +02:00
committed by Rainer Killinger
parent afd324fc6a
commit 13938ecf21
7 changed files with 164 additions and 37 deletions

View File

@@ -1,17 +1,8 @@
// tslint:disable:no-default-export
// tslint:disable:no-magic-numbers
import {RecursivePartial} from '@openstapps/logger/lib/common';
import {ElasticsearchConfigFile} from '../src/storage/elasticsearch/common';
/**
* A partial type which is recursive
*
* Copied and only modified array type from `[]` to `Array<>` from https://stackoverflow.com/a/51365037
*/
type RecursivePartial<T> = {
[P in keyof T]?:
T[P] extends Array<(infer U)> ? Array<RecursivePartial<U>> :
T[P] extends object ? RecursivePartial<T[P]> :
T[P];
};
/**
* This is the database configuration for the technical university of berlin
*/