UNPKG

marko

Version:

Optimized runtime for Marko templates.

6 lines (5 loc) 499 B
import type { Falsy } from "./types"; export declare function forIn(obj: Falsy | {}, cb: (key: string, value: unknown) => void): void; export declare function forOf(list: Falsy | Iterable<unknown>, cb: (item: unknown, index: number) => void): void; export declare function forTo(to: number, from: number | Falsy, step: number | Falsy, cb: (index: number) => void): void; export declare function forUntil(until: number, from: number | Falsy, step: number | Falsy, cb: (index: number) => void): void;