zDocumento
This commit is contained in:
parent
48125b5369
commit
1e219ad657
8 changed files with 74 additions and 3 deletions
|
|
@ -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
12
src/zCoordenadas.ts
Normal 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(),
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue