refactor: Use declarations style for functions.

This commit is contained in:
Ruben Verborgh
2021-01-06 11:24:43 +01:00
parent e70e060225
commit f9a20799eb
23 changed files with 208 additions and 162 deletions

View File

@@ -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';