Skip to content

Commit a56d14a

Browse files
committed
feat: update dependencies allowing for change of callback type
1 parent 148c9fe commit a56d14a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/iterableMethodsFactory.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function iterableMethodsFactory<T, E = Error>(
2525
}
2626
catch (e) {
2727
// eslint-disable-next-line callback-return
28-
callback(e);
28+
callback(e as E | null | undefined);
2929
}
3030
}),
3131
async (err, res) => {
@@ -66,7 +66,7 @@ export function iterableEachOfMethodsFactory<T, E = Error>(
6666
}
6767
catch (e) {
6868
// eslint-disable-next-line callback-return
69-
callback(e);
69+
callback(e as E | null | undefined);
7070
}
7171
}),
7272
async (err, res) => {
@@ -111,7 +111,7 @@ export function iterableEachOfLimitMethodsFactory<T, E = Error>(
111111
}
112112
catch (e) {
113113
// eslint-disable-next-line callback-return
114-
callback(e);
114+
callback(e as E | null | undefined);
115115
}
116116
}),
117117
async (err, res) => {
@@ -155,7 +155,7 @@ export function iterableLimitMethodsFactory<T, K, E = Error>(
155155
}
156156
catch (e) {
157157
// eslint-disable-next-line callback-return
158-
callback(e);
158+
callback(e as E | null | undefined);
159159
}
160160
}),
161161
async (err, res) => {
@@ -200,7 +200,7 @@ export function iterableMemoMethodsFactory<T, K, E = Error>(
200200
}
201201
catch (e) {
202202
// eslint-disable-next-line callback-return
203-
callback(e);
203+
callback(e as E | null | undefined);
204204
}
205205
}),
206206
async (err, res) => {

0 commit comments

Comments
 (0)