torc-api
Version:
torc-api is a lightweight wrapper to simplify HTTP requests
12 lines • 407 B
TypeScript
import { APIOptions } from "./APIOptions.js";
export type FetchOptionsBase = APIOptions & {
endpoint?: string;
};
export type FetchOptionsWithJSON = FetchOptionsBase & {
formatToJSON?: true;
};
export type FetchOptionsWithoutJSON = FetchOptionsBase & {
formatToJSON?: false;
};
export type FetchOptions = FetchOptionsWithJSON | FetchOptionsWithoutJSON;
//# sourceMappingURL=FetchOptions.d.ts.map