@sanity/mutator
Version:
A set of models to make it easier to utilize the powerful real time collaborative features of Sanity
19 lines (15 loc) • 528 B
text/typescript
import {type PatchOperations} from '@sanity/types'
import {type DiffMatchPatch} from './DiffMatchPatch'
import {type IncPatch} from './IncPatch'
import {type InsertPatch} from './InsertPatch'
import {type SetIfMissingPatch} from './SetIfMissingPatch'
import {type SetPatch} from './SetPatch'
import {type UnsetPatch} from './UnsetPatch'
export type PatchTypes =
| DiffMatchPatch
| IncPatch
| InsertPatch
| SetIfMissingPatch
| SetPatch
| UnsetPatch
export type SingleDocumentPatch = PatchOperations & {id: string}