build
This commit is contained in:
parent
a6205f1ab6
commit
e580643abc
40 changed files with 329 additions and 507 deletions
5
dist-require/autenticacao/_validarToken.d.ts
vendored
5
dist-require/autenticacao/_validarToken.d.ts
vendored
|
|
@ -1,14 +1,11 @@
|
|||
import type { tipoResposta } from "p-respostas";
|
||||
type tipoPostValidarTokem = {
|
||||
token: string;
|
||||
};
|
||||
import type { z } from "zod";
|
||||
import type { zAmbiente } from "../ts/ambiente";
|
||||
/** faz a validação do token */
|
||||
export declare const validarToken: ({ ambiente, post, buscar, }: {
|
||||
export declare const validarToken: ({ ambiente, post, }: {
|
||||
ambiente: z.infer<typeof zAmbiente>;
|
||||
post: tipoPostValidarTokem;
|
||||
/** função que conecta com a API */
|
||||
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
|
||||
}) => Promise<"valido" | "erro">;
|
||||
export {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue