@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
10 lines • 642 B
TypeScript
import { Frame } from '../frame/frame';
/**
* @summary Wrap a generator function into an object implementing Iterable or AsyncIterable.
* A common mistake is to pass a generator object to a function that expects an iterable.
* While generators are iterable, they behave very differently from other iterables.
* In particular, they are not reusable - you can iterate over them only once, unlike arrays or sets.
* @category Utils
*/
export declare function wrapGeneratorForAnimation(v: () => Generator<Frame> | AsyncGenerator<Frame>): Iterable<Frame> | AsyncIterable<Frame>;
//# sourceMappingURL=wrap-generator-function-in-object.d.ts.map