build
This commit is contained in:
parent
efd8aaf87d
commit
b83125f06b
7 changed files with 10 additions and 10 deletions
|
|
@ -10,7 +10,7 @@ import type { zp_enviar_registros } from "../_enviar_registros"
|
|||
import { PREFIXO_PILAO, type zp_deletar_registros } from "../variaveis"
|
||||
import type { visoes } from "../visoes"
|
||||
import type { tipo_pilao_api } from "./pilao-api.ts"
|
||||
import type { tipoConstrutorPilao, tipoRetornoSerirconsulta } from "./tipagem"
|
||||
import type { tipoConstrutorPilao, tipoRetornoSerieconsulta } from "./tipagem"
|
||||
|
||||
class ClassPilao {
|
||||
#produto: string
|
||||
|
|
@ -206,7 +206,7 @@ class ClassPilao {
|
|||
parametros: z.infer<(typeof visoes)[T]>,
|
||||
) {
|
||||
const dados = async (): Promise<
|
||||
tipoResposta<tipoRetornoSerirconsulta<T>>
|
||||
tipoResposta<tipoRetornoSerieconsulta<T>>
|
||||
> => {
|
||||
const url = this.rotaConsultarSerie(tipoVisao).url
|
||||
const resp = await crossFetch(url.toString(), {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type { visoes } from "../visoes"
|
|||
|
||||
export type tipoConstrutorPilao = { produto: string; conta: string }
|
||||
|
||||
export type tipoRetornoSerirconsulta<T extends keyof typeof visoes> = {
|
||||
export type tipoRetornoSerieconsulta<T extends keyof typeof visoes> = {
|
||||
registros: any[]
|
||||
legenda: string
|
||||
serie: z.infer<(typeof visoes)[T]>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue