2.1.9 • Published 6 months ago
@types/mongoose-geojson-schema v2.1.9
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.