UNPKG

react-fblibrary

Version:

FBLibrary é uma biblioteca autoral que reúne componentes e bases fundamentais para desenvolvimento eficiente. Nosso objetivo é criar um ecossistema de componentes, desde elementos simples, como inputs e botões, até layouts completos, que podem ser reutili

15 lines (14 loc) 910 B
import { ServiceParams } from "./domain"; /** * Makes a fetch request to the specified URL using the provided parameters. * * @param {ServiceParams} params - The parameters for the fetch request. * @param {string} method - The HTTP method for the request. * @return {Promise<T | boolean>} - A promise that resolves to the response data or false if there was an error. */ export declare function makeFetchRequest<T>(params: ServiceParams, method: string): Promise<T | boolean>; export declare const getService: <T>(params: ServiceParams) => Promise<T | boolean>; export declare const postService: <T>(params: ServiceParams) => Promise<T | boolean>; export declare const putService: <T>(params: ServiceParams) => Promise<T | boolean>; export declare const deleteService: <T>(params: ServiceParams) => Promise<T | boolean>; export declare const checkGetRequest: (params: ServiceParams) => Promise<boolean>;