32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
/**
|
|
* Shared utilities for the TypeScript API client.
|
|
*/
|
|
import type { FileSystem } from "./fs.ts";
|
|
export interface ClientSocketOptions {
|
|
/** Path to the Unix domain socket or Windows named pipe for API communication */
|
|
pipe: string;
|
|
}
|
|
export interface ClientSpawnOptions {
|
|
/** Path to the tsgo executable. Defaults to the bundled tsgo binary. */
|
|
tsserverPath?: string;
|
|
/** Current working directory */
|
|
cwd?: string;
|
|
/** Virtual filesystem callbacks */
|
|
fs?: FileSystem;
|
|
/**
|
|
* When true, collect timing information for each request. The client
|
|
* measures round-trip latency and bytes sent/received, and the server
|
|
* measures its own per-request processing time; both are combined (along
|
|
* with an estimated transport overhead) in the snapshot returned by
|
|
* {@link API.getTimingInfo}.
|
|
*/
|
|
collectTiming?: boolean;
|
|
}
|
|
export type ClientOptions = ClientSocketOptions | ClientSpawnOptions;
|
|
export declare function isSpawnOptions(options: ClientOptions): options is ClientSpawnOptions;
|
|
export declare function resolveExePath(options: ClientSpawnOptions): string;
|
|
export interface LSPConnectionOptions extends ClientSocketOptions {
|
|
}
|
|
export interface APIOptions extends ClientSpawnOptions {
|
|
}
|
|
//# sourceMappingURL=options.d.ts.map |