RxJS's AjaxResponse sets response as any when we can declare the type returned.
response
This interface is meant to be internal, used as:
ajax('/api/contents') as Observable<JupyterAjaxResponse<Contents>>
or as
ajax('/api/contents').map(resp => { if(resp.response.type === "notebook") })
NOTE: the response can still be invalid and should likely be validated
{string} The raw responseText
{string} The responseType (e.g. 'json', 'arraybuffer', or 'xml')
{number} The HTTP status code
Generated using TypeDoc
RxJS's AjaxResponse sets
response
as any when we can declare the type returned.This interface is meant to be internal, used as:
ajax('/api/contents') as Observable<JupyterAjaxResponse<Contents>>
or as
ajax('/api/contents').map(resp => { if(resp.response.type === "notebook") })
NOTE: the response can still be invalid and should likely be validated