UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

22 lines (21 loc) 949 B
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>;