@jupyterlab/git
Version:
A JupyterLab extension for version control using git
15 lines (14 loc) • 675 B
TypeScript
import { ServerConnection } from '@jupyterlab/services';
import { Git } from './tokens';
import { TranslationBundle } from '@jupyterlab/translation';
/**
* Obtain the server settings or provide meaningful error message for the end user
*
* @param trans Translation bundle
* @param serverSettings Optional server connection settings
* @returns The server settings
*
* @throws {ServerConnection.ResponseError} If the response was not ok
* @throws {ServerConnection.NetworkError} If the request failed to reach the server
*/
export declare function getServerSettings(trans: TranslationBundle, serverSettings?: ServerConnection.ISettings): Promise<Git.IServerSettings>;