Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/iterableMethodsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function iterableMethodsFactory<T, E = Error>(
}
catch (e) {
// eslint-disable-next-line callback-return
callback(e);
callback(e as E | null | undefined);
}
}),
async (err, res) => {
Expand Down Expand Up @@ -66,7 +66,7 @@ export function iterableEachOfMethodsFactory<T, E = Error>(
}
catch (e) {
// eslint-disable-next-line callback-return
callback(e);
callback(e as E | null | undefined);
}
}),
async (err, res) => {
Expand Down Expand Up @@ -111,7 +111,7 @@ export function iterableEachOfLimitMethodsFactory<T, E = Error>(
}
catch (e) {
// eslint-disable-next-line callback-return
callback(e);
callback(e as E | null | undefined);
}
}),
async (err, res) => {
Expand Down Expand Up @@ -155,7 +155,7 @@ export function iterableLimitMethodsFactory<T, K, E = Error>(
}
catch (e) {
// eslint-disable-next-line callback-return
callback(e);
callback(e as E | null | undefined);
}
}),
async (err, res) => {
Expand Down Expand Up @@ -200,7 +200,7 @@ export function iterableMemoMethodsFactory<T, K, E = Error>(
}
catch (e) {
// eslint-disable-next-line callback-return
callback(e);
callback(e as E | null | undefined);
}
}),
async (err, res) => {
Expand Down