mirror of
https://github.com/balena-io/etcher.git
synced 2025-11-13 04:09:26 +00:00
Use Dictionary type from lodash
Change-type: patch
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user