UNPKG

typed-utilities

Version:
5 lines (4 loc) 351 B
export declare const next: <T>(iter: Iterator<T, any, undefined>) => T; export declare const nextify: <T>(iter: Iterator<T, any, undefined>) => () => T; export declare const runToCompletion: <T>(iter: Iterator<T, any, undefined>) => Promise<T>; export declare const withRunToCompletion: <T>(fn: () => Iterator<T, any, undefined>) => () => Promise<T>;