Skip to content

five-on-it / packages/catalogue/src/town-fields / District

Variable: District ​

const District: ZodPipe<ZodObject<{ blocks: ZodDefault<ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>>>; density: ZodOptional<ZodObject<{ built: ZodOptional<ZodNumber>; height: ZodOptional<ZodEnum<{ high: "high"; low: "low"; mixed: "mixed"; }>>; setback: ZodOptional<ZodNumber>; }, $strict>>; landmarks: ZodOptional<ZodArray<ZodString>>; landuse: ZodOptional<ZodEnum<{ civic: "civic"; commercial: "commercial"; farm: "farm"; industrial: "industrial"; leisure: "leisure"; residential: "residential"; retail: "retail"; }>>; mix: ZodOptional<ZodRecord<ZodString, ZodNumber>>; name: ZodString; theme: ZodOptional<ZodEnum<{[key: string]: string; }>>; title: ZodOptional<ZodString>; }, $strict>, ZodTransform<object & object, { blocks: [number, number][]; density?: { built?: number; height?: "low" | "high" | "mixed"; setback?: number; }; landmarks?: string[]; landuse?: "residential" | "farm" | "industrial" | "leisure" | "civic" | "commercial" | "retail"; mix?: Record<string, number>; name: string; theme?: string; title?: string; }>>

Defined in: packages/catalogue/src/town-fields.ts:183

A district: a name, the blocks it paints, its theme, title, density, mix and landmarks.