Adapter<T, U>: ((value: T) => {
next: (() => Promise<{
done: boolean;
value: U;
}>);
return?: (() => Promise<void>);
})
Type declaration
-
- (value: T): {
next: (() => Promise<{
done: boolean;
value: U;
}>);
return?: (() => Promise<void>);
}
-
Returns {
next: (() => Promise<{
done: boolean;
value: U;
}>);
return?: (() => Promise<void>);
}
-
next: (() => Promise<{
done: boolean;
value: U;
}>)
-
- (): Promise<{
done: boolean;
value: U;
}>
-
Returns Promise<{
done: boolean;
value: U;
}>
-
Optional
return?: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>