UNPKG

@vansite/ts-sharetribe-flex-sdk

Version:

This is a TypeScript SDK for Sharetribe Flex API. It reduces the complexity of the API and provides a more user-friendly interface.

16 lines 728 B
import { SharetribeApiError } from "../types"; import { AxiosError } from "axios"; type ObjectQueryStringParam = Record<string, any>; /** * Serializes an object into a custom query string format. * * @param {ObjectQueryStringParam} obj - The object to serialize. Each key-value pair * is serialized in the format `key:value`. Attributes are processed using * `serializeAttribute`. * @throws {Error} If the input is not an object or is null. * @returns {string} A semicolon-separated query string. */ export declare const objectQueryString: (obj: ObjectQueryStringParam) => string; export declare const createSharetribeApiError: (error: AxiosError) => SharetribeApiError; export {}; //# sourceMappingURL=util.d.ts.map