-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathapi.proposed.jupyterSettings.d.ts
29 lines (27 loc) · 1.19 KB
/
api.proposed.jupyterSettings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// @ts-ignore Bogus import required for compiler to work
import type { CancellationToken } from 'vscode';
declare module './api' {
/**
* Use of proposed API is not recommended.
* This could change anytime without any notice.
*/
export interface JupyterServerConnectionInformation {
/**
* The `fetch` method to use.
* The types of the parameters are not defined so as to avoid enforcing the use of `DOM` in `tsconfig.json`.
* The signature of this method matches the `fetch` method in the browser.
* https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch
* fetch(input: RequestInfo, init?: RequestInit) =>Promise<Response>;
*/
readonly fetch?: (input: any, init?: any) => Promise<any>;
/**
* The `WebSocket` object constructor.
* This matches the `WebSocket` object in the browser.
* https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
* `typeof WebSocket`, made `any` so that `DOM` is not required in tsconfig for those not using this.
*/
readonly WebSocket?: any;
}
}