FluidIterableIterator Interface
Like TypeScript's built-in iterable iterator type.
To use, import via fluid-framework/beta.
For more information about our API support guarantees, see here.
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
/** @sealed */
export interface FluidIterableIterator<T> extends FluidIterable<T>
Extends: FluidIterable<T>
Type Parameters
| Parameter | Description |
|---|---|
| T |
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| next() | Beta | { value: T; done?: false; } | { value: any; done: true; } | Returns the next element in the iteration sequence. |
Method Details
next
Returns the next element in the iteration sequence.
For more information about our API support guarantees, see here.
Signature
next(): {
value: T;
done?: false;
} | {
value: any;
done: true;
};
Remarks
Works like the built-in Iterator.next method. When there are remaining elements, returns \{ value: T; done?: false \}. When the iteration is complete, returns \{ value: any; done: true \}.
Returns
Return type: { value: T; done?: false; } | { value: any; done: true; }