Use Dictionary type from lodash

Change-type: patch
This commit is contained in:
Alexis Svinartchouk
2020-01-14 17:45:14 +01:00
parent bd35c89c04
commit 2671c83337
5 changed files with 8 additions and 14 deletions

View File

@@ -24,10 +24,6 @@ import * as errors from './errors';
const getAsync = promisify(request.get);
export interface Dictionary<T> {
[key: string]: T;
}
export function isValidPercentage(percentage: any): boolean {
return _.every([_.isNumber(percentage), percentage >= 0, percentage <= 100]);
}