@sanity/form-builder
Version:
Sanity form builder
12 lines • 744 B
TypeScript
import { Path, PathSegment } from '@sanity/types';
import { SetIfMissingPatch, InsertPatch, InsertPosition, SetPatch, UnsetPatch, IncPatch, DecPatch } from './types';
export declare function setIfMissing(value: any, path?: Path): SetIfMissingPatch;
export declare function insert(items: any[], position: InsertPosition, path?: Path): InsertPatch;
export declare function set(value: any, path?: Path): SetPatch;
export declare function unset(path?: Path): UnsetPatch;
export declare function inc(amount?: number, path?: Path): IncPatch;
export declare function dec(amount?: number, path?: Path): DecPatch;
export declare function prefixPath<T extends {
path: Path;
}>(patch: T, segment: PathSegment): T;
//# sourceMappingURL=patches.d.ts.map