Fix TS errors

This commit is contained in:
Maroxy 2021-11-03 21:10:37 +01:00
parent e829d08489
commit d0c2fd4eb9
2 changed files with 2 additions and 4 deletions

View file

@ -99,8 +99,7 @@ $(() => {
});
}
// @ts-expect-error
td.find('span').text(item.val());
td.find('span').text(item.val() as string);
};
$('.properties-list input').on('change', propsInputsOnChange);

View file

@ -19,9 +19,8 @@ export class i18n
while ((item = /\{([a-zA-Z\.]+)\}/g.exec(translation)) !== null)
{
let value = constants;
let value: any = constants;
// @ts-expect-error
item[1].split('.').forEach(ref => value = value[ref]);
translation = translation.replace(item[0], value);