Fix error TS2469 reported by TypeScript
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
6149673177
commit
c3224a50a0
@ -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) {
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user