UNPKG

dandi

Version:

A JavaScript API for the Distributed Archives for Neurophysiology Data Integration (DANDI)

15 lines (14 loc) 461 B
import { Options } from "./types"; type JSONMimeType = 'application/json'; type BaseHeaders = { accept: JSONMimeType; 'Content-Type': JSONMimeType; Authorization?: string; }; export declare const getBaseHeaders: (token?: string) => BaseHeaders; export type APIRequestConfig = { options: Options; json?: any; } & RequestInit; export declare const request: (pathname: string, config: APIRequestConfig) => Promise<any>; export default request;