typescript-language-server
Version:
Language Server Protocol (LSP) implementation for TypeScript using tsserver
27 lines • 886 B
TypeScript
import * as lsp from 'vscode-languageserver';
import type tsp from 'typescript/lib/protocol.d.js';
import { RequestHandler } from 'vscode-jsonrpc';
export declare type InlayHintsParams = {
/**
* The document to format.
*/
textDocument: lsp.TextDocumentIdentifier;
/**
* The range to format
*/
range?: lsp.Range;
};
declare type InlayHint = {
text: string;
position: lsp.Position;
kind: tsp.InlayHintKind;
whitespaceBefore?: boolean;
whitespaceAfter?: boolean;
};
export declare type InlayHintsResult = {
inlayHints: InlayHint[];
};
export declare const type: lsp.RequestType<InlayHintsParams, InlayHintsResult, lsp.TextDocumentRegistrationOptions>;
export declare type HandlerSignature = RequestHandler<InlayHintsParams, InlayHintsResult | null, void>;
export {};
//# sourceMappingURL=lsp-protocol.inlayHints.proposed.d.ts.map