(
params: {
readonly empty: Patch
readonly diff: (oldValue: Value, newValue: Value) => Patch
readonly combine: (first: Patch, second: Patch) => Patch
readonly patch: (patch: Patch, oldValue: Value) => Value
}
)
| 31 | |
| 32 | /** @internal */ |
| 33 | export const make = <Value, Patch>( |
| 34 | params: { |
| 35 | readonly empty: Patch |
| 36 | readonly diff: (oldValue: Value, newValue: Value) => Patch |
| 37 | readonly combine: (first: Patch, second: Patch) => Patch |
| 38 | readonly patch: (patch: Patch, oldValue: Value) => Value |
| 39 | } |
| 40 | ): Differ.Differ<Value, Patch> => { |
| 41 | const differ = Object.create(DifferProto) |
| 42 | differ.empty = params.empty |
| 43 | differ.diff = params.diff |
| 44 | differ.combine = params.combine |
| 45 | differ.patch = params.patch |
| 46 | return differ |
| 47 | } |
| 48 | |
| 49 | /** @internal */ |
| 50 | export const environment = <A>(): Differ.Differ<Context<A>, Differ.Differ.Context.Patch<A, A>> => |
no test coverage detected
searching dependent graphs…