jslib-nightly
Version:
SheerID JavaScript Library
22 lines (21 loc) • 801 B
TypeScript
export declare const fetchWithTimeout: (url: string, options?: {}) => Promise<Response>;
export declare const PostJson: (url: string, body: Object, headers?: {
Accept: string;
'Content-Type': string;
}) => Promise<Object>;
export declare const DeleteJson: (url: string, headers?: {
Accept: string;
'Content-Type': string;
}) => Promise<Object>;
export declare const GetJson: (url: string, headers?: {
Accept: string;
'Content-Type': string;
}) => Promise<Object>;
export declare const GetResponse: (url: string, headers?: {
Accept: string;
'Content-Type': string;
}) => Promise<Object>;
export declare const createFormData: (files: File[]) => FormData;
export declare const PostFiles: (url: string, files: File[], headers?: {
Accept: string;
}) => Promise<Object>;