/** * Constructs a differ that knows how to diff `Env` values. * * @tsplus static Differ.Ops environment */ export function environment(): Differ, Service.Patch> { return Differ.make({ empty: Service.Patch.empty(), combine: (first, second) => first.combine(second), diff: (oldValue, newValue) => Service.Patch.diff(oldValue, newValue), patch: (patch, oldValue) => patch.patch(oldValue) }) }