zDocumento

This commit is contained in:
Luiz Silva 2026-06-06 11:36:32 -03:00
parent 48125b5369
commit 1e219ad657
8 changed files with 74 additions and 3 deletions

View file

@ -19,4 +19,5 @@ export * from "./tipagemRotas"
export * from "./unidades_medida"
export * from "./uuid"
export * from "./variaveisComuns"
export * from "./zCoordenadas"
export * from "./zDocumento"

12
src/zCoordenadas.ts Normal file
View file

@ -0,0 +1,12 @@
/**
* No futuro podemos melhorar este Zod para incluir mais formatos de coordenadas.
*
*/
import z from "zod"
export const zCoordenadas = z.object({
formato: z.literal("decimal").default("decimal"),
datum: z.literal("EPSG:4326").default("EPSG:4326"),
latitude: z.number(),
longitude: z.number(),
})