mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Use declarations style for functions.
This commit is contained in:
@@ -29,13 +29,13 @@ class DummyFactory implements FileIdentifierMapperFactory {
|
||||
}
|
||||
}
|
||||
|
||||
const genToArray = async<T>(iterable: AsyncIterable<T>): Promise<T[]> => {
|
||||
async function genToArray<T>(iterable: AsyncIterable<T>): Promise<T[]> {
|
||||
const arr: T[] = [];
|
||||
for await (const result of iterable) {
|
||||
arr.push(result);
|
||||
}
|
||||
return arr;
|
||||
};
|
||||
}
|
||||
|
||||
describe('A TemplatedResourcesGenerator', (): void => {
|
||||
const rootFilePath = 'templates';
|
||||
|
||||
Reference in New Issue
Block a user