@sassoftware/vi-api
Version:
Types used in the SAS Visual Investigator API
46 lines (45 loc) • 1.55 kB
JavaScript
export {};
/**
* @typedef {Object} HttpApi~StringRequestOptions
* @property [headers] {Record<string, string | string[]>}
* @property [params] {Record<string, string | string[]>}
* @property responseType {"text"}
*/
/**
* @typedef {Object} HttpApi~JsonRequestOptions
* @property [headers] {Record<string, string | string[]>}
* @property [params] {Record<string, string | string[]>}
* @property responseType {"json"}
*/
/**
* @typedef {Object} HttpApi~BlobRequestOptions
* @property [headers] {Record<string, string | string[]>}
* @property [params] {Record<string, string | string[]>}
* @property responseType {"blob"}
*/
/**
* @typedef {Object} HttpApi~HeadOptions
* @property [headers] {Record<string, string | string[]>}
* @property [params] {Record<string, string | string[]>}
*/
/**
* @typedef {Object} HttpApi~StringGenericRequestOptions
* @property [body] {(any|null)}
* @property [headers] {Record<string, string | string[]>}
* @property [params] {Record<string, string | string[]>}
* @property [responseType] {"text"}
*/
/**
* @typedef {Object} HttpApi~JsonGenericRequestOptions
* @property [body] {(any|null)}
* @property [headers] {Record<string, string | string[]>}
* @property [params] {Record<string, string | string[]>}
* @property [responseType] {"json"}
*/
/**
* @typedef {Object} HttpApi~BlobGenericRequestOptions
* @property [body] {(any|null)}
* @property [headers] {Record<string, string | string[]>}
* @property [params] {Record<string, string | string[]>}
* @property [responseType] {"blob"}
*/