build
This commit is contained in:
parent
3b6a243ee4
commit
45d7067509
6 changed files with 22 additions and 15 deletions
|
|
@ -15,7 +15,12 @@ import type { tipoConstrutorPilao, tipoRetornoSerieconsulta } from "./tipagem"
|
|||
|
||||
type nomesVisoes = keyof typeof visoes_pilao
|
||||
|
||||
class ClassPilao {
|
||||
export type retornoSerieConsultar<T extends nomesVisoes> = {
|
||||
dados: () => Promise<tipoResposta<tipoRetornoSerieconsulta<T>>>
|
||||
url: () => string
|
||||
}
|
||||
|
||||
export class ClassPilao {
|
||||
#produto: string
|
||||
#conta: string
|
||||
#emDesenvolvimento: boolean
|
||||
|
|
@ -226,7 +231,7 @@ class ClassPilao {
|
|||
tipoVisao: T,
|
||||
parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>,
|
||||
padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">,
|
||||
) {
|
||||
): retornoSerieConsultar<T> {
|
||||
const parametros = {
|
||||
...parametros_,
|
||||
...Object.fromEntries(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue