import { Diff } from '../Diff' ; const mapDiffSymbol = Symbol ( 'map diff' ) ; const mapDiff = function ( parameters ) : MapDiff { return { kind : mapDiffSymbol , ... parameters } ; } ; interface MapDiff extends Diff { kind : typeof mapDiffSymbol ; additions : Map < any , any > ; omissions : Map < any , any > ; changes : Map < any , Diff > ; equal : Map < any , any > ; } const isMapDiff = function ( diff ) : diff is MapDiff { return 'kind' in diff && diff . kind === mapDiffSymbol ; } ; export type { MapDiff } ; export { isMapDiff , mapDiff } ;