1
0

remove parameter types

This commit is contained in:
2024-05-08 20:40:09 +02:00
parent 6cb81d452d
commit a2e525c2da

View File

@@ -68,11 +68,11 @@ export function combineAsyncComparers<T>(first: MaybeAsyncComparer<T>, second: M
} }
export function reverseComparer<T>(comparer: Comparer<T>): Comparer<T> { export function reverseComparer<T>(comparer: Comparer<T>): Comparer<T> {
return (a: T, b: T) => comparer(b, a); return (a, b) => comparer(b, a);
} }
export function reverseAsyncComparer<T>(comparer: MaybeAsyncComparer<T>): AsyncComparer<T> { export function reverseAsyncComparer<T>(comparer: MaybeAsyncComparer<T>): AsyncComparer<T> {
return async (a: T, b: T) => await comparer(b, a); return async (a, b) => await comparer(b, a);
} }
export function* asGenerator<T>(iterator: Iterator<T>) { export function* asGenerator<T>(iterator: Iterator<T>) {