Implement review

- lint member order
- cleaner type coersion
- specify access modifiers everywhere
This commit is contained in:
Jorik Schellekens 2020-05-26 12:09:23 +01:00
parent dfc73626fa
commit ba3fe850e0
3 changed files with 18 additions and 23 deletions

View file

@ -79,7 +79,7 @@ export default class QueryMatcher<T extends Object> {
// type for their values. We assume that those values who's keys have
// been specified will be string. Also, we cannot infer all the
// types of the keys of the objects at compile.
const keyValues: (string)[] = _at<T>(object as any, this._keys) as any;
const keyValues = _at<string>(<any>object, this._keys);
for (const f of this._funcs) {
keyValues.push(f(object));