UNPKG

@sanity/desk-tool

Version:

Tool for managing all sorts of content in a structured manner

14 lines 634 B
import { incremental } from 'mendoza'; import { Chunk, Annotation } from '@sanity/field/diff'; import { Diff } from '@sanity/diff'; import { Timeline } from './Timeline'; export declare type Meta = { chunk: Chunk; transactionIndex: number; } | null; export declare type AnnotationExtractor = { fromValue(value: incremental.Value<Meta>): Annotation; fromMeta(meta: Meta): Annotation; }; export declare function diffValue(timeline: Timeline, firstChunk: Chunk | null, from: incremental.Value<Meta>, fromRaw: unknown, to: incremental.Value<Meta>, toRaw: unknown): Diff<Annotation>; //# sourceMappingURL=diffValue.d.ts.map