mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-08 09:07:57 +03:00
Fix TS errors
This commit is contained in:
parent
e829d08489
commit
d0c2fd4eb9
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue