2.1.9 • Published 6 months ago

@types/mongoose-geojson-schema v2.1.9

Weekly downloads
1,014
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/mongoose-geojson-schema

Summary

This package contains type definitions for mongoose-geojson-schema (https://github.com/rideamigoscorp/mongoose-geojson-schema#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mongoose-geojson-schema.

index.d.ts

// Type definitions for mongoose-geojson-schema 2.1
// Project: https://github.com/rideamigoscorp/mongoose-geojson-schema#readme
// Definitions by: Bond <https://github.com/bondz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.1

import mongoose = require('mongoose');

declare module 'mongoose' {
  namespace Schema {
    namespace Types {
      class GeoJSON extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'GeoJSON';
      }

      class Point extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'Point';
      }

      class MultiPoint extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'MultiPoint';
      }

      class LineString extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'LineString';
      }

      class MultiLineString extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'MultiLineString';
      }

      class Polygon extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'Polygon';
      }

      class MultiPolygon extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'MultiPolygon';
      }

      class Geometry extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'Geometry';
      }

      class GeometryCollection extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'GeometryCollection';
      }

      class Feature extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'Feature';
      }

      class FeatureCollection extends SchemaType {
        constructor(key: string, options?: object);
        cast(geojson: object): this;
        static schemaName: 'FeatureCollection';
      }
    }
  }
}

Additional Details

  • Last updated: Sun, 24 Apr 2022 14:31:47 GMT
  • Dependencies: @types/mongoose
  • Global values: none

Credits

These definitions were written by Bond.

2.1.8

7 months ago

2.1.7

8 months ago

2.1.9

6 months ago

2.1.6

2 years ago

2.1.5

3 years ago

2.1.4

4 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

7 years ago

2.1.0

7 years ago