thi-ng/umbrella

View on GitHub
packages/zipper/src/api.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Fn, Fn2 } from "@thi.ng/api";

export interface ZipperOps<T> {
    branch: Fn<T, boolean>;
    children: Fn<T, T[]>;
    factory: Fn2<T, T[], T>;
}

export interface Path<T> {
    l?: T[];
    r?: T[];
    path?: Path<T>;
    nodes: T[];
    changed: boolean;
}