diff --git a/src/tests/libs/widgets-loader.test.ts b/src/tests/libs/widgets-loader.test.ts index a15671ee1..1fd412e31 100644 --- a/src/tests/libs/widgets-loader.test.ts +++ b/src/tests/libs/widgets-loader.test.ts @@ -16,7 +16,10 @@ test('Test mini-widgets exist', async () => { * @param {T} enum_type Enum type with values as filenames * @param {string} path_template Path template as string, where name should be used as filename */ -async function enum_to_files_checker(enum_type: T, path_template: string): Promise { +async function enum_to_files_checker | { [s: string]: unknown }>( + enum_type: T, + path_template: string +): Promise { const loader = await Promise.allSettled( /* eslint-disable @typescript-eslint/no-unused-vars */ Object.values(enum_type).map((name) => import(eval('`' + path_template + '`'))) // Please, have marcy of my soul