UNPKG

313 BTypeScriptView Raw
1declare module "@extra-iterable/cut" {
2import type { testFn } from "./_types";
3/**
4 * Breaks iterable when test passes.
5 * @param x an iterable
6 * @param ft test function (v, i, x)
7 */
8declare function cut<T>(x: Iterable<T>, ft: testFn<T>): IterableIterator<T[]>;
9export = cut;
10//# sourceMappingURL=cut.d.ts.map}