@loken/hierarchies
Version:
Library for working with hierarchies of identifiers and identifiable objects.
13 lines (9 loc) • 389 B
text/typescript
import type { Predicate } from '@loken/utilities';
import type { HCNode } from './node.js';
/**
* Delegate that can be called in order to remove the "brand" from
* the node that returned this delegate when it was branded.
*/
export type DeBrand = () => void;
/** Predicate which determines whether the `node` is a match. */
export type NodePredicate<Item> = Predicate<HCNode<Item>>;