Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn committed Mar 23, 2020
1 parent 33c4957 commit d67cf7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ async function runTests(
}

function getTsVersion(i: number): TsVersion {
return i === typesVersions.length ? TypeScriptVersion.latest : assertDefined(TypeScriptVersion.previous(typesVersions[i]));
return i === typesVersions.length
? TypeScriptVersion.latest
: assertDefined(TypeScriptVersion.previous(typesVersions[i]));
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ export function assertDefined<T>(a: T | undefined): T {
return a;
}

export async function mapDefinedAsync<T, U>(arr: Iterable<T>, mapper: (t: T) => Promise<U | undefined>): Promise<(awaited U)[]> {
export async function mapDefinedAsync<T, U>(
arr: Iterable<T>, mapper: (t: T) => Promise<U | undefined>):
Promise<Array<awaited U>> {
const out = [];
for (const a of arr) {
const res = await mapper(a);
Expand Down

0 comments on commit d67cf7a

Please sign in to comment.