UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

2 lines (1 loc) 175 B
export declare function createUpdater<T, U>(host: T, getter: (x: T) => U, setter: (x: T, v: U) => void, shouldUpdate: (reduced: U, value: U) => boolean): (value: U) => void;