0.2.2 • Published 6 months ago
@types/geojson-equality v0.2.2
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
// Type definitions for geojson-equality 0.2
// Project: https://github.com/geosquare/geojson-equality
// Definitions by: Matt Fedderly <https://github.com/mfedderly>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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: Wed, 23 Jun 2021 11:01:15 GMT
- Dependencies: @types/geojson
- Global values: none
Credits
These definitions were written by Matt Fedderly.