UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

9 lines (8 loc) 322 B
/** * Fetch me is a wrapper around fetch that returns the response or an error message * and handles the json conversion and fetches with a POST method * @param url the url to fetch * @param data the data to send * @returns */ export declare const fetchMe: (url: string, data: object) => Promise<string | Response>;