Fix error TS2469 reported by TypeScript

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-04-20 12:30:23 -03:00
parent 6149673177
commit c3224a50a0
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
2 changed files with 5 additions and 1 deletions

View File

@ -139,6 +139,11 @@ function loadTemplate (id) {
var $form = $('form[name="dump"]');
var options = JSON.parse(response.data);
$.each(options, function (key, value) {
if (typeof key === 'symbol') {
// Continue to next iteration.
return true;
}
var localValue = value;
var $element = $form.find('[name="' + key + '"]');
if ($element.length) {

View File

@ -17,7 +17,6 @@ const typeScriptErrorsToIgnore = [
2365, // TS2365: Operator '%s' cannot be applied to types '%s' and '%s'.
2367, // TS2367: This comparison appears to be unintentional because the types '%s' and '%s' have no overlap.
2405, // TS2405: The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
2469, // TS2469: The '+' operator cannot be applied to type 'symbol'.
2538, // TS2538: Type '%s' cannot be used as an index type.
2769, // TS2769: No overload matches this call.
5096, // TS5096: Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set.