@types/geojson-equality
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/geojson-equality

    Weekly Downloads

    3,683

    Version

    0.2.2

    License

    MIT

    Unpacked Size

    4.29 kB

    Total Files

    5

    Last publish

    Collaborators

    • types