UNPKG

@aequum/geojson-models

Version:

GeoJSON models for `class-validator` provided by aequum

20 lines (19 loc) 717 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FeatureCollection = void 0; const tslib_1 = require("tslib"); const class_validator_1 = require("class-validator"); class FeatureCollection { type = 'FeatureCollection'; features = []; } exports.FeatureCollection = FeatureCollection; tslib_1.__decorate([ (0, class_validator_1.IsEnum)(['FeatureCollection']), tslib_1.__metadata("design:type", Object) ], FeatureCollection.prototype, "type", void 0); tslib_1.__decorate([ (0, class_validator_1.IsArray)(), (0, class_validator_1.ValidateNested)({ each: true }), tslib_1.__metadata("design:type", Array) ], FeatureCollection.prototype, "features", void 0);