Skip to content

ProtomapsBasemapSchema

const ProtomapsBasemapSchema: ZodObject<{ flavor: ZodOptional<ZodEnum<["light", "dark", "white", "grayscale", "black"]>>; glyphs: ZodOptional<ZodString>; lang: ZodOptional<ZodEnum<["ar", "cs", "bg", "da", "de", "el", "en", "es", "et", "fa", "fi", "fr", "ga", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "lt", "lv", "ne", "nl", "no", "mr", "mt", "pl"]>>; pmtiles: ZodString; sprite: ZodOptional<ZodString>; }, "passthrough", ZodTypeAny, objectOutputType<{ flavor: ZodOptional<ZodEnum<["light", "dark", "white", "grayscale", "black"]>>; glyphs: ZodOptional<ZodString>; lang: ZodOptional<ZodEnum<["ar", "cs", "bg", "da", "de", "el", "en", "es", "et", "fa", "fi", "fr", "ga", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "lt", "lv", "ne", "nl", "no", "mr", "mt", "pl"]>>; pmtiles: ZodString; sprite: ZodOptional<ZodString>; }, ZodTypeAny, "passthrough">, objectInputType<{ flavor: ZodOptional<ZodEnum<["light", "dark", "white", "grayscale", "black"]>>; glyphs: ZodOptional<ZodString>; lang: ZodOptional<ZodEnum<["ar", "cs", "bg", "da", "de", "el", "en", "es", "et", "fa", "fi", "fr", "ga", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "lt", "lv", "ne", "nl", "no", "mr", "mt", "pl"]>>; pmtiles: ZodString; sprite: ZodOptional<ZodString>; }, ZodTypeAny, "passthrough">>

Defined in: packages/core/src/schemas/basemap.schema.ts:227

The shorthand alone, for editors (JSON Schema) and documentation. Runtime validation goes through MapStyleSchema, whose refinement gives the plain-language messages.