Skip to main content
Version: Next

featureSchema

const featureSchema: ZodObject<object, "strip", ZodTypeAny, object, object>;

Zod schema for Feature containing Polygon or MultiPolygon

Type declaration

geometry

geometry: ZodUnion<[ZodObject<object, "strip", ZodTypeAny, object, object>, ZodObject<object, "strip", ZodTypeAny, object, object>]>;

id

id: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;

properties

properties: ZodNullable<ZodUnion<[ZodRecord<ZodString, ZodAny>, ZodNull]>>;

type

type: ZodLiteral<"Feature">;