UNPKG

1.14 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/// <amd-module name="@angular/language-service/ivy/language_service" />
9import { CompilerOptions } from '@angular/compiler-cli';
10import * as ts from 'typescript/lib/tsserverlibrary';
11export declare class LanguageService {
12 private readonly tsLS;
13 private options;
14 private readonly compilerFactory;
15 private readonly strategy;
16 private readonly adapter;
17 constructor(project: ts.server.Project, tsLS: ts.LanguageService);
18 getSemanticDiagnostics(fileName: string): ts.Diagnostic[];
19 getDefinitionAndBoundSpan(fileName: string, position: number): ts.DefinitionInfoAndBoundSpan | undefined;
20 getTypeDefinitionAtPosition(fileName: string, position: number): readonly ts.DefinitionInfo[] | undefined;
21 getQuickInfoAtPosition(fileName: string, position: number): ts.QuickInfo | undefined;
22 private watchConfigFile;
23}
24export declare function parseNgCompilerOptions(project: ts.server.Project): CompilerOptions;