benjamine/jsondiffpatch

View on GitHub
packages/jsondiffpatch/src/contexts/patch.ts

Summary

Maintainability
A
0 mins
Test Coverage
import Context from './context.js';
import type { Delta } from '../types.js';

class PatchContext extends Context<unknown> {
  left: unknown;
  delta: Delta;
  pipe: 'patch';

  nested?: boolean;

  constructor(left: unknown, delta: Delta) {
    super();
    this.left = left;
    this.delta = delta;
    this.pipe = 'patch';
  }
}

export default PatchContext;