@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
23 lines (21 loc) • 950 B
TypeScript
import { DocUploadData } from '../types/types';
export declare const fetchWithTimeout: (url: string, requestInit?: RequestInit,
/** optional b/c sometimes it has already been called */
checkSuccessive?: boolean) => Promise<Response>;
export declare const PostJson: (url: string, body: Object, headers?: {
[key: string]: string;
}) => Promise<Object>;
export declare const DeleteJson: (url: string, headers?: {
[key: string]: string;
}) => Promise<Object>;
export declare const GetJson: (url: string, headers?: {
[key: string]: string;
}) => Promise<Object>;
export declare const GetResponse: (url: string, headers?: {
[key: string]: string;
}) => Promise<Object>;
export declare const createFormData: (files: File[]) => FormData;
export declare const createDocUploadData: (files: File[]) => DocUploadData[];
export declare const PostFiles: (url: string, files: File[], headers?: {
"Content-Type": string;
}) => Promise<Object>;