Merge branch 'master' into options1

This commit is contained in:
Daniel Imms
2021-10-22 10:07:36 -07:00
committed by GitHub
44 changed files with 656 additions and 509 deletions
+5
View File
@@ -190,6 +190,11 @@ export class OptionsService implements IOptionsService {
if (value <= 0) {
throw new Error(`${key} cannot be less than or equal to 0, value: ${value}`);
}
case 'rows':
case 'cols':
if (!value && value !== 0) {
throw new Error(`${key} must be numeric, value: ${value}`);
}
break;
}
return value;