Add two files of notebook component in Matser (#363)

* “minor changes”
This commit is contained in:
Chris-MS-896
2021-01-12 12:55:21 -06:00
committed by GitHub
parent 9247a6c4a2
commit b1ad80480e
3 changed files with 11 additions and 7 deletions

View File

@@ -1,6 +1,5 @@
import { Observable, of } from "rxjs";
import { AjaxRequest, AjaxResponse } from "rxjs/ajax";
import { ServerConfig } from "@nteract/types";
let fakeAjaxResponse: AjaxResponse = {
originalEvent: <Event>(<unknown>undefined),
@@ -12,7 +11,7 @@ let fakeAjaxResponse: AjaxResponse = {
responseType: "json"
};
export const sessions = {
create: (serverConfig: ServerConfig, body: object): Observable<AjaxResponse> => of(fakeAjaxResponse),
create: (serverConfig: unknown, body: object): Observable<AjaxResponse> => of(fakeAjaxResponse),
__setResponse: (response: AjaxResponse) => {
fakeAjaxResponse = response;
},