Now Packing Magic

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

    0.2.0 • 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

    // 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.

    Keywords

    none

    Install

    npm i @types/geojson-equality

    DownloadsWeekly Downloads

    134

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    4.78 kB

    Total Files

    4

    Last publish

    Collaborators

    • types