Type alias Callback<P, R, E>
Callback<P, R, E>: {
(e, ...params): R;
(e?, ...params): R;
}
Type Parameters
-
P extends any[] = []
-
R = any
-
E extends Error = Error
Type declaration
-
- (e, ...params): R
-
Parameters
-
e: E
-
Rest
...params: Partial<P>
Returns R
- (e?, ...params): R
-
Parameters
-
Optional
e: null
-
Rest
...params: P
Returns R
Generic callback