map-transform-cjs
Version:
MapTransform with CJS support
13 lines (10 loc) • 383 B
TypeScript
import { TransformerProps, Path, Operation } from '../types.js';
interface Props extends TransformerProps {
arrayPath: Path;
propPath: Path;
matchSeveral?: boolean;
flip?: boolean;
}
declare function lookup({ arrayPath, propPath, matchSeveral, flip, }: Props): Operation;
declare function lookdown(props: Props): Operation;
export { type Props, lookdown, lookup };