17 lines
534 B
TypeScript
17 lines
534 B
TypeScript
import type { z } from "zod"
|
|
import type { visoes_pilao, z_padroes } from "../visoes/listaDeVisoes"
|
|
|
|
export type tipoConstrutorPilao = { produto: string; conta: string }
|
|
|
|
export type z_tipagem_registros = {
|
|
z_contagem_em_barra_vertical: any[]
|
|
z_contagem_em_pizza: any[]
|
|
z_tabela: any[]
|
|
z_soma_em_barra_vertical: any[]
|
|
}
|
|
|
|
export type tipoRetornoSerieconsulta<T extends keyof typeof visoes_pilao> = {
|
|
registros: z_tipagem_registros[T]
|
|
legenda: string
|
|
serie: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>
|
|
}
|