Installation
npm install --save @types/geojson-equality
Summary
This package contains type definitions for geojson-equality (https://github.com/geosquare/geojson-equality).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geojson-equality.
index.d.ts
/// <reference types="geojson" />
declare class GeojsonEquality {
constructor(
options?: Partial<{
/**
* Precision used in floating point comparison.
* @default 17
*/
precision: number;
/**
* Direction of LineString or Polygon (orientation) is ignored if false
* @default false
*/
direction: boolean;
/**
* Custom function for use in comparing Feature properties
* @default shallowEquals
*/
objectComparator: (a: Record<string, any>, b: Record<string, any>) => boolean;
}>,
);
compare(a: GeoJSON.GeoJsonObject, b: GeoJSON.GeoJsonObject): boolean;
}
export = GeojsonEquality;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/geojson
Credits
These definitions were written by Matt Fedderly.