UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

21 lines (20 loc) 753 B
import type { CompactTestOp } from '../codec/compact/types'; import type { OperationTest } from '../types'; import { type Path } from '@jsonjoy.com/json-pointer'; import { AbstractPredicateOp } from './AbstractPredicateOp'; import { OPCODE } from '../constants'; import type { AbstractOp } from './AbstractOp'; /** * @category JSON Patch * @category JSON Predicate */ export declare class OpTest extends AbstractPredicateOp<'test'> { readonly value: unknown; readonly not: boolean; constructor(path: Path, value: unknown, not: boolean); op(): "test"; code(): OPCODE; test(doc: unknown): boolean; toJson(parent?: AbstractOp): OperationTest; toCompact(parent: AbstractOp | undefined, verbose: boolean): CompactTestOp; }